fixed quitGame() and made function naming more consistent