It's not totally obvious how to do that, because the if-better function always can only do 2 distinctions, so you have to find a clever way to use that function to guess how to construct a shortest tour, but it's possible in the way that I've showed you here. 