I really need more information. What seems like playing to you ...could be how he handles the embarrassment of not making it to the toilet (for example).
Does he do this only in the bathroom? Are his poops really hard? Does he poop on a regular basis at a regular time? Is he on medication? Has he had any recent changes in his life? What do you mean by he is playing with it....is he smearing it around...or what?