Latch help?

M
I am bf my daughter and thinking I'm doing all the right things, tickling the upper lip, when she opens wide putting her on, pinching my boob, shoving her close to me. It seems like her bottom lip is just sucking in and now I have a flat track
Marck across my nipple. Any ideas how I can help correct this? My boobs are starting to hurt and I need to correct this ASAP!  I know something is wrong cause it is starting to hurt!