Instead of Depth-First use Best-Value-First traversal