added remainingNumbers and compareNumbers in preparation for eliminating subsets