fixed game over logic