Added game over check