Implemented the main menu and transition between main menu and game.