More work on team assignment.
Added levels to teams.
Getting teams by levels