Help creating a scratch card simulation

Ok. So it is as I said you have changed your code. I am not sure why you have done that.!!
Thats why the new code does not work because you now are getting a bracket “)” on the end which needs removing.

Also looking at your the code I am not sure why you are going to all this trouble getting image names when you know what they are already and using ‘"${resourcesFolderName}’ in the scratch card code, are they going to be changed dynamically some how?