fixed a-star search