Adds neighbour-based determination about row/column edges