Update function rank_hand_int