31.05.2009, 00:05
If you have only 2 teams it's easy, just compare the amount of players in team 1 with the amount of players in team 2, if difference is greater than 3 then change the team of the last player who joined the team where there are most players, to the other team.