public String toString() {
        String res;

        switch (getSuit()) {
            case CLUBS:
                res = "Clubs";
                break;
            case DIAMONDS:
                res = "Diamonds";
                break;
            case HEARTS:
                res = "Hearts";
                break;
            default:
                res = "Spades";
        }
        res += " ";
        switch (getRank()) {
            case TEN:
                res += "10";
                break;
            case JACK:
                res += "jack";
                break;
            case QUEEN:
                res += "queen";
                break;
            case KING:
                res += "king";
                break;
            case ACE:
                res += "ace";
                break;
            default:
                res += getRank();
        }

        return res;
    }