add hand check algorithm