Replace index method with find method in rank_hand_int in utils module