added quit game uialert delegate logic