code: def promote_to_main(self, move: chess.Move) -> None:
          
          variation = self[move]
          self.variations.remove(variation)
          self.variations.insert(0, variation)
docs: Promotes the given *move* to the main variation.