Refactor and simplify by classifying only five-card hands, classify all possible hands, and pick the best