Fills out check of if the permutation is the correct matching. Brute force method complete.