added a swarm mode, runs slowly with more than 10