getTeam changes

made corrections to getTeam to run an array of team objects