I think this is the part when it starts to get interesting, feedback loop, read worthy article:

Reflection (artificial intelligence)
https://en.wikipedia.org/wiki/Reflection_(artificial_intelligence)