Also, the grid edge initing code (the final one in additive style) has at least 1 issue: it only needs to loop 63 times, not 64 times. 64*4=256, but the edges of a 64x64 grid have only 252 (63*4) points combined. You could fill it for example like so: AAA…B … B D B D … D…CCC