public int getWinType() {
        if(isRoyal()) {
            return WIN_ROYAL;
        } 
        if(isStraightFlush()) {
            return WIN_STRFLUSH;
        } 
        if(isFourOfKind()) {
            return WIN_FOUROFKIND;
        } 
        if(isFullHouse()) {
            return WIN_FULLHOUSE;
        } 
        if(isFlush()) {
            return WIN_FLUSH;
        } 
        if(isStraight()) {
            return WIN_STRAIGHT;
        } 
        if(isThreeOfKind()) {
            return WIN_THREEODKIND;
        } 
        if(isTwoPair()) {
            return WIN_TWOPAIR;
        } 
        if(isPair()) {
            return WIN_PAIR;
        }
        return 0;
    }