fixed gameover conditions