Bug formTeams()

Fixed the bug from formTeams(). The teams were not correctly formed, a player was in two teams.