Passing the final test but it's not solving the puzzles