writing logic for four of a kind, set, two pair, or pair