changed the game win logic