<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def root(self) -> "GameNode": """Gets the root node, i.e., the game."""

        node = self

        while node.parent:
            node = node.parent

        return node