Refactored IsStraight and IsStraightFlush(take advantage of same code of isStraight function