basic swarm

code for swarming between a network