Order the pieces and solve the puzzle