Are lines 38 and 39 supposed to be printing 'row' and 'col', then?
You may also want to note that line 34 has an identifier identical to the one on line 7, so referring to it in the function will mean the array on line 34. This may not be what you want.