would be helpful to have some comments explaining these variables as well. I remember we came up with the k, x, and y indices, but I don't remember what they represent anymore. And what is maxFill?