Solves 8-Puzzle using implementation of A* algorithm.