Implements quit game