starting swarm logic