Start of refactoring of addStudentToTeams.py