Every player has an ELO value that starts at 1000, when teams are made the average ELO of one team is compared to the other team, and the program will make them as balanced as possible.
At the end of the game, the winning team will recieve an amount of ELO based on their teams ELO compared to the other team.
And the losing team will lose that amount.