added game over condition