slight fix to the grid algorithm, it now returns true only if it has a full NxN matrix visible