added game over logic