wrote a basic loop to get team names