A* algorithm Implementation for the Eight-Puzzle