Breastfeeding and bitting

Keren
Hey ladies! I need some advice.. I have been breastfeeding my son successfully for 9 1/2 months. I love it. But he recently broke out a tooth and now I can't get him to stop bitting me while nursing !! 
I've tried so many things to get him to stop. I've taking the boob away, firmly saying NO, saying ouch ! Even a little flick on the cheek.. He just keeps doing it. I really don't want to stop nursing but it hurts bad every time. Has anyone gone through this ?