Jigsaw puzzle exact perfect and full overlap problem

Hi there Everybody!

I am quite new to as3 but I am trying hard! :slight_smile: My problem is the following. I am trying to make a jigsaw puzzle game. However when I shuffle the puzzle pieces I also add a random rotation to them. And this is my problem… theoretically the user needs to rotate the puzzle to its right position and the to position it exactly in the same position where it should be and the game should accept it **only **when the puzzle pieces **fully **and **perfectly **overlaps the real position. Is there any possibility to make somehow the fully and perfectly overlapping solution? Thank you in advance!