Add function to check for game over and alert if so