Added code to exit the game on clicking the Quit button