getting hash values of hands