Adding function the 'quit' button on main menu. Program now closes when 'quit' button is clicked.