Episode 2: The Main Game Loop