Solving the 8-puzzle with the A* search algorithm