This code may do what you want for (green → pink → yellow) = destroy(X) :
http://img11.hostingpics.net/pics/326925Sanstitre1.png
[http://img11.hostingpics.net/pics/326925Sanstitre1.png][2]