Jigsaw Image game

Hi,

I need to create a image puzzle game, where I name a photo something like [COLOR=#ff0000]jigsaw[/COLOR].jpg and put it in a specific folder and when they open the file it automatically makes that photo into the [COLOR=#ff0000][COLOR=black]puzzle.[/COLOR][/COLOR][COLOR=#000000]If all pieces are placed properly then user will be directed to congratulations screen.[/COLOR]

Somebody suggested me to do it using Dynamic masking but not too sure…

Please advise…
[COLOR=#ff0000][/COLOR]
[COLOR=#ff0000]:pa:[/COLOR]