Guidance needed on how to light up many lights on one column of max.

So I kinda get this more now but where would my variables rowstate and columnstate go?