Recursive loops in AI thought processes