SET Card game

i tried to make a card game called set but its not working
The purpose is to display 12 cards on the table
Link:

it has an error and doesn’t work.

The error indicates a property that cannot be found, maybe the object itself not found on line 1014:
problem

Commenting out the segment where a lot of random elements from list2 and list3 are removed, the code runs:

This leads me to believe that maybe the FOR loop on line 1012 indexes a position in list3 which was previously removed in the FOR loop on line 1004.