If you remember, if he could go any direction, and not only above the surface, it was just the negative gradient of the temprature function. But Here we have a restriction on the moving subject, it can move nly above the surface, so we need to take the negative gradient (of the temprature formula) and find its projection on the surface.
And that what I want to be corrected, im not sure about that.