private int score(Hand h) {
        if(isRoyalFlush(h)) {
            return 10;
        }
        if(isStraightFlush(h)) {
            return 9;
        }
        if(is4ofaKind(h)) {
            return 8;
        }
        if(isFullHouse(h)) {
            return 7;
        }
        if(isFlush(h)) {
            return 6;
        }
        if(isStraight(h)) {
            return 5;
        }
        if(is3ofaKind(h)) {
            return 4;
        }
        if(is2Pair(h)) {
            return 3;
        }
        if(is2ofaKind(h)) {
            return 2;
        }
        setHighCard(h);
        return 1;
    }