added gameover checks