code: def center(self) -> Point2:
          
          assert self
          pos = Point2(
              (
                  sum([unit.position.x for unit in self]) / self.amount,
                  sum([unit.position.y for unit in self]) / self.amount,
              )
          )
          return pos
docs: Returns the central point of all units in this list