Refactored IsThreeOfAKind and IsFullHouse(take advantage of same code of IsThreeOfAKind function