Solve the foreaft puzzle using dfs, bfs, and using a heuristic (A* search)