(Solved) Clear variables

Hello everybody!
I have some tiles that I rotate them by clicking. If I want to swap 2 tiles instead of rotating them, I press the space bar, click 1st and then click the 2nd. I’m saving their positions in (clickx1, clicky1 and clickx2, clicky2) Let’s supose I regret of 1st click with space pressed and want to continue simply clicking to rotate them, when I try to swap 2 tiles in the future, the first position is already saved, and they swap on my “1st” click wich is actually my “second”. Is there a way to cancel my first click saved if i click a tile with space bar pressed and the next tile with space bar released?
Thank you.

I solved it. Thanks.