fixed bug where only one team is allowed