The dynamic interplay of student motivation and cognition in the college classroom