Trouble with using encoder and pid library together

It will be interesting to see what happens when you make use of the Button2 library.