Modified Statemanager to pass game reference to state.before()