Which sentence contains a dangling modifier?

A. My swollen ankle caused me to limp.

B. Then , at guitar lessons, I had to play a song I hadn’t practiced.

C. Running for the bus, the rain began to pour.