My code is designed to calculate a value for each non-edge element in a square array, with the value being equal to the 4 neighbouring elements. I believe all that stuff wor