Ant simulator

The 'ants' have only a few simple behaviours:

Using just this, the ants are able to organise the randomly dropped grains into piles.