Solver for 8 and 15 Puzzle based on A* heuristic algorithm