gamemanager statemachine