fixes game over condition