operations on NxN grid. WIP.