Declaring analog pins as digital and setting up with a loop

I agree that it should not pose an issue, but for some reason it does. I had the same issue with using pins 2 and 3 for some reason. I shifted things around a bit and now I have an array that works. If I had the time I would closer into what the root cause is but since it now works I'll go with that.

Ill leave the thread open for a wile in case someone wants to weigh in, otherwise I will mark this as the solution, as in check that the pins aren't in use.

Thank you to everyone who responded even if I didn't reply directly.