contestada

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