You can drag the clones Hold space for the clones to automatically move The collision detection will not be working when you drag the sprite, but it will be working when you finish dragging it or when moving automatically
Each clone says the number of other clones it's currently touching This is done using lists storing each clone's position and unique identifier, looping through the clones and then moving each sprite to a calculated position and checking if it touches a invisible black hitbox in the center to determine if it touched another clone. The collision check is pixel perfect using this method