Continued work on AI. Infinite loop issue on Gin