Added the findshift in the 2D array, not totally in 2D though