Game modes now work, but are very primitive. There is also a bug that one more game mode state is created than there should be. When game is over, it simply crashes, but for now I thought it should go back to main menu.