iterates through player array