Improve join balancing

Make autojoin choose the team with the lowest score when player counts are equal.

The second change fixes the fact that the team balancing check ignored the team you came from. This meant that if you were in alpha with one player less than beta, /join beta resulting in a gap of 2 players would be allowed.