Fixed GameOver-checking