again fixed condition to end game
again fixed condition to end game