Refactor some of the starter code.

Match is a static function that takes an array of cards to be matched.

validCounts is an NSArray now (rather than an NSUInteger of the highest
possible value), which is the same as the other valid* methods.