I'm making a small program that makes a showable grid that can be modified with functions that create patterns on the grid. Right now I'm making a function fund that takes an object of class field; it's supposed to make a jagged pattern on the grid but right now I'm just trying to get it to make a straight line. And yet for some reason despite checking everything I know of that could cause a problem, the function never manages to modify the grid. Can you please take a look at my code and see what the heck is wrong?
Oh! I see what I did wrong. I now remember that to actually modify the argument itself, I have to put the & before the variable. Thank you for your help!