Resolving name based on hand rank