Solver of 8-puzzle problem