Sliding Block Puzzles Solver Without Recursivity