How to make polygons change color when pressed

My problem is very similar to this one. I cannot make the thing work though. Would you look at it and tell me what you think? Thank you very much.
https://discourse.psychopy.org/t/make-image-appear-and-disappear-on-click/23007/1