Refactoring hands to allow arbitrary number of cards.