def __hash__(G):
    """
        Define the hash of a game as the hash of the left and right options.

        Returns
        -------
        hash : str
            The hash of G.
        """
    return hash((frozenset(G._left), frozenset(G._right)))
