So I am writing a function that takes a 2D array and the row number and the column number of the target cell and returns the number of neighbour cells that are 1, and here i