9-Piece Puzzle is a multi-platform compatible game in which you have to swap the riles to restore the picture. Source code available.