Patients undergoing brain surgery gave researchers the perfect opportunity to study how thoughts move.