determination of game over