code: def bot_item_drop_event(self, dropped_listwidget, event):
          
          dragged_listwidget = event.source()
          if dragged_listwidget is dropped_listwidget:  # drops in the same widget
              return
          self.current_bot.set_team(0 if dropped_listwidget == self.blue_listwidget else 1)
          self.update_teams_listwidgets()
docs: Switches the team for the dropped agent to the other team
          :param dropped_listwidget: The listwidget belonging to the new team for the agent
          :param event: The QDropEvent containing the source
          :return: