I could see the cogs turning as he calculated strategies...I got there first.
He was thinking of various ways to solve the problem but didn't come up with any. 
mnli hypothesis: He was thinking of various ways to solve the problem but didn't come up with any.  premise: I could see the cogs turning as he calculated strategies...I got there first.