public short isFullHouse() {
            short firstNum = handOfCards[0].cardNumber,
                    lastNum = handOfCards[cards - 1].cardNumber;
            short firstNumCount = 0, lastNumCount = 0;
            for (int i = 0; i < cards; i++) {
                if (handOfCards[i].cardNumber == firstNum) {
                    ++firstNumCount;
                } else if (handOfCards[i].cardNumber == lastNum) {
                    ++lastNumCount;
                }
            }
            //return logic
            if (firstNumCount == 3 && lastNumCount == 2) {
                return firstNum;
            } else if (lastNumCount == 3 && firstNumCount == 2) {
                return lastNum;
            } else {
                return 0;
            }
        }