Card and hand class for a poker rank calculator