What was he thinking?
or "WAS he thinking"?
If this is an example of his thinking processes, I'm glad it came out now