example fix

exposeNeighbours function was checking 4 rows & columns, not 3.