added file 3d for visualization when N = 3
(ie: gridcode has 3 rings)