aiswarm logic