fixing validation to win the game