Don’t run code in your head. Run it in reality and step through it with a debugger.