state machine impoved by adding control states, left/right buttons are active now