Changed condition to start checking if a player won