Simultaneously Assigning Brushes to Multiple Images on a Widget

After taking some steps back, I decided to work with arrays to make the coding less messy and complicated.

Here is what I have, so far. Now I want to assign a number between 1 and 13 to each card button for the time being, then assign a brush to an image which will be in a separate array later. What would you recommend I do next?