code: def root(self: BoardT) -> BoardT:
          
          if self._stack:
              board = type(self)(None, chess960=self.chess960)
              self._stack[0].restore(board)
              return board
          else:
              return self.copy(stack=False)
docs: Returns a copy of the root position.