Gets the root node, i.e., the game.

def root(self) -> "GameNode":
        """Gets the root node, i.e., the game."""
        node = self

        while node.parent:
            node = node.parent

        return node