Dont really understand your question.
If what you want is swapping to sprites i would try sometihng like
spirte1.setposition to sprite2.X & sprite2.Y
Sprite2.setposition to sprite1.X & sprite1.Y
Dont know what you are really asking
I want to make a puzzle in which the pieces can be swapped to only if they are above or on the side (right / left). I want to restrict the direction for not to swap diagonally.