adding g(h) to next node search, to make it a really A* search