refactored poker hands