Minor refactorings Plus functionality to get N E S W neighbours.