This is an implementation of the classic ant in the labyrinth problem, discussed in
de Gennes PG. 1976. La percolation: un concept unificateur. La Recerche 7 72–82.