Re: "Does the program actually 'know' it is playing Go"
Obviously not, otherwise we would have AI now.
Computers and programs know nothing, they just execute instructions and flip bits. It's the programmer that knows what he is to code for, and writes the instructions that will achieve the end result.