Refactors rank test functions to retern details required for description, then return RankedHand from rank_hand function.
Method to get rank of a given hand.