recursively go through the cards and see if there are any matches between them.