Ha Ha! I remember this problem...
I had a hammy called Eric a few years ago and he used to sit on his platform whipping out poo's and throwing them at my wall, and they stuck.... eeew
In the end I had to put a bit of cardboard on the cage where he did it to stop him, dirty boy!!