I think that it will not be necessary to build circuits as complex as this one.
So should I use transparent small sprites in the objects' ends to detect this? For example, I would have to check what is at the A end of the battery. If it's the B end of a wire, I have to check what's on the A end of that wire. If it’s another wire, no problem, I will check what at another end of this wire, and if it’s the A end of the fuse, I check to see if there’s a wire at the other end, and so on...
Would it be this? If so, how exactly do I do that? And how to adding this information in the variable (using append?) and then checking if the whole structure is correct? This is knotting my head.