Declared a 2D array of square instead of 2D array of integers.