Buried under his covers that night, he did a lot of thinking.
I'm not a teacher nor an expert but I would not think it is a metaphor. It seems to me that, whilst he was laying in bed, under the covers, he did some thinking.
Can someone verify. Thanks