Incorporating weights into real-time heuristic search