You obviously had a lot on your mind and were dealing with it through thought and reflection. Boredom on the other hand is when someone's brain is having to deal with nothing.