Scrambler and solver for 8puzzle