AI Agent Loops Explained Simply