public void changeState(menuState newState) { currentState.exitState(); newState.enterState(); currentState = newState; }