broken a* with heuristic