added quit_game function