This is a firestore query that generates This list below. What is the best way to iterate through the list and find the players with same teamID create and other list with teams