added picture of the rotary encoder and added a state machine for it