Pacman A* solved, but with some problem