comparing and ranking hands