Breastfeeding while pregnant

Am unexpectedly pregnant and nursing an 11 month old. My gyn told me to try to wean him since it causes contractions and then the milk will eventually dry up. I stopped pumping and am trying to stop nursing frequently. However, i am now experiencing engorgement of the breasts and they are begining to hurt. What do i do? Please hlep.