changes to StateMachine due to changes to the Entity System in #11