Added code to find 3 and 4 of a kind