15 weeks today and starting biting! Other wise he is chill

How do I stop out big puppy from biting! He does it both playfully and when getting brushed or annoyed