Based on this earlier thread I think it’s an issue with the “clickable stimuli” list: TypeError: obj.contains is not a function when using variable clickable stimuli - #11 by darsyq
However, you actually don’t need that list at all with your current code because you’re checking each image manually anyway, so the fastest solution may be to simply clear the “clickable objects” field for mouse_7 and try running it again.