Check for consecutive matches in multidimensional array in both rows and columns. Return the index of each match. Candy Crush style matching.