fixed a* heuristic