refactored two_pair and royal flush