Added game over checking