add final pieces to solve function - complete for simple puzzles