I NEED HELP ANYONE PLEASE

Ok so I can't upload pictures because my phone gets no service in school but I can use this computer to post online. So basically I have 5 rows with red dot lasers on one side that point to light sensors on the other side. And I also have 5 columns setup the same way with red dot lasers and sensors. This basically makes a 5 by 5 grid and the objective is for someone to place there finger or object on the grid and disrupt a row and column. Basically they interrupt the row and column by block the red dot laser from hitting the sensor. When they do in fact disrupt a row and column it turns on a corresponding LED. Hope that makes better sense. I have a basic flow chart I can put here that might make more sense. I'm trying to do a function to scan the rows and then when a row is interrupted it scans the columns and when a column is also interrupted it will find out which row and collumn is interrupted and light up a corresponding led.

Here is the link for the basic flowchart I created. Lucidchart