Fixed infinite gameover to fix issue #11