Added state machine to DodgeballEngine.