Thanks for your reply.
However, what I am looking for needs to be more complex:
Break image into pieces.
Make pieces be magnet-like when correct nes are positioned near eachother.
Inform the user when puzzle is complete.
a recently posted example for another topic could be used for splitting the images into pieces
as for making pieces 'magnetic' and supplying an alert when the jigsaw is correctly assembled, i imagine you'll have to have each image section stored with reference IDs, indicating which other images belong around it.
i'd personally store it something like this, eg: using a 6 piece jigsaw in the following layout.
storing the ID of each surrounding piece, and it's location in reference to the original piece (North, East, South, West).
i imagine they used the same kind of grid methodology here: