For the array you can add an instance variable (var1) to the clickables where the value relates to the array row so first one is var=0, second one is 1, third is 2 etc. You then need a second instance variable on the clickable for its colour (var2) like gray/orange or 0/1 which would change when clicked (probably logic you already have in the event sheet as it changes to orange)
To toggle the colour and update the array you would use - clickable on clicked, set array.at(self.var1) to self.var2. To update the clickables together when you load data into the array you can use - for each clickable set var2 to array.at(self.var1).