Check if different costumes of a sprite are touching each other. The "touching" sensor block doesn't normally allow a sprite to select itself, but you can type in the sprite's name to make it work.