Changed isNofAKind so that it does not assume anything about length of the hand of cards.