extracted gamemenu from game.cpp, works with escapebutton at the moment