Finished findAdjacentSamePieces which determines all adjacent indices which contain the same piece as the one in the space given along with the offset used to get there.