Weight Lifting and/or Martial Arts, program your body brute force vs. clever solutions. Also they'll extend your general wellness.
For example, the other day I had to work out after work instead of in the morning, and I had also been encouraged to do some spinning because of a knee issue. I found that I didn't perform well but I don't what caused it exactly: the cardio before lifting, it being late, tiredness from work, eating schedule, the knee, etc. Kind of similar to debugging.