Oxygen helps. I remember when I first started programming, I would encounter difficult programming problems, especially in how to most efficiently do something. I always found the answer when jogging. There is a thing called catching your second wind when you jog, and at that point of oxygenation, I would just effortlessly see solutions to my problems. Walking is good too.