Problem with Servo and Encoder

Post your code inside code tags, not as an attached file. I don't know about others, but I read these forums on a tablet or on a phone and opening a .ino file is a pain. Won't happen.