Adding logic for card hand evaluation.