corrected a little bug on quit game

corrected too all the warnings. We have ZERO warnings :D