Implementing the complete picture-puzzle game