while BF my son kicks and tugs my nipple!

My son kicks and makes whining noises and tugs on my nipples. What is causing him to do this? How do I stop it?