Renamed teamSize to currentTeamSize