Which sentence is written correctly?
A. Stepping into the mud ruined my shoes.
B. Stepping into the mud, my shoes were ruined.
C. The mud ruined my shoes while stepping into it.