The team must not contain more than two players from the same team and must be a valid formation.