changed hashcode, uncommented heuristic astar