How to call the Ax states in a loop?

Thanks Robin,

Adding these declaration solved the issue.

Thanks for the feedback Sembarazu, I am currently programming a UNO, but it would be cleaner doing an A array (and again going out of my comfort zone). I might also want to change to set print whenever I change a A state without doing a test. It might be smaller memory usage for the program but I kinda like the idea of testing/verifying, once in the main loop.