Adding spiral matrix, and replace neighbors in matrix, similar to
paintfill using dfs.