This is an implementation of an on-lattice (i.e. grid-based) diffusion-limited aggregation process. See
Witten TA and LM Sander. 1981. Diffusion-limited aggregation, a kinetic critical phenomenon. Physical Review Letters 47 1400–1403.