Finding neighbours in 2D array by Flood-fill