moved requesting game restart to function that checks for game over