added some methods in AStarState