code: def remove_spawned_gates(self, spawn_gate=None):
          
          if spawn_gate is None:
              for sg in list(self.spawn_list):
                  self.spawn_list.remove(sg)
                  sg.remove()
          else:
              spawn_gate.remove()
              self.spawn_list.remove(spawn_gate)
docs: Removes all spawned gates.