AI solver for the 8 puzzle