Made the main menu loop.