C code for solving a 15-puzzle gives a segmentation fault when it tries to show the paths for each update to the puzzle
I have a code that is supposed to show the paths in solving a 15-puzzle after showing the initial state and goal state. However, while it does show the initial state and goal state, it gives a segmentation fault instead of printing out the path.