Added a quit function to the main menu.