fix game over condition