Ever since seeing this video I've been wondering if there's some deeper mathematical basis for this puzzle, because of the extremely regular pattern that it happens to produce.
For example, the way consecutive digits are actually in order, but separated by a single square (and looping around the edge of the board)