refactored buildPairs method to take only lists of players and matches