Preparation for the main menu