separated InGame and MainMenu from state.py