I don't have to worry about muddiness where I am at. I do know that you can put plastic panels or tin on the top of it. For drainage you might want to put wood chips or sand.
Hope this helped!
I started my run with 12-18 inches of free wood chips.
No mud, odors, or flies...
Read up on "Deep Litter".
Lots of information on this site.