The neural net guides the search for the right move, but the program ultimately considers many possible sequences and picks the one it thinks is best. The program could justify its choice in the same way human players do: by playing out alternative choices and showing how those choices would have put it into a worse position.