So, I'm making another drag and drop game and I've some issues when the object is overlapping another object in the same spot. I've create some global variables that holds the position X and Y before dragging the item, and an ID to differentiate the objects (because they are only one sprite with different animations inside). I need to make the object return to his original position or change position with the other object without overlapping him (the object is named: Nomes in the screenshot below).