Solving a tile puzzle (project with nephew)