Solver for sliding-tile puzzles.