Even in the heat of a middlegame battle the master still has to bear in mind the outlines of a possible future ending.