added an optional maximum amount of teams for events