Dragging images

I have images that are supposed to be dragged across the screen (there’s about eight of them), but when I drag one image on top of another, it switches images. I’m not really sure how to explain it, but here’s a screenshot of what happens when I drag my finger from the right to the left. How do I avoid this, I’ll post code if you need to see it for yourself

http://imgur.com/cbE1Qxe

@Doge Once you select an image, set a flag so you don’t select another image until you release the first one. There are several examples of what you’re having a problem with, but I’m not sure what to search for. I know I posted some of them.

@Doge I found one that might be of help. It’s a puzzle example where you drag pieces around to complete the puzzle.

http://codea.io/talk/discussion/4844/puzzle-example#Item_1