Simulates turmites on a torus.