Refactor hand_rank for elegance (though inelegant in hand_percentages now