working on pickTeam algorithm