Add function to rank a given hand