added movement to statemachine