add node adds the best node to the search path.