Improved the main menu and fixed a bug in random mode