Add new StateMachine and GameLoop