You can try making a high pitched YIPE like one of his puppy playmates do, he should stop.
If your playing and he is biting get up and walk away. Go back and play after a couple of minutes repeat until he gets the hint. The YIPE should work , he will understand he hurt you and biting is NOT fun.