random walk on a canvas, following along with the Nature of Code book