Use arrays instead another for loop for a second round of matches.