Use the state machine and hook up movement in the obvious way.