Toenail

Be

So I let my toenails grow out to long and so when one started to hurt I cut it and it ripped. So I had to get the part of the nail that ropes out of my skin. And when I did I though it would stop hurting but it didn't and puss started coming out of my toe. What should I do so I can walk normally and have a toe that doesn't hurt? If you know why the puss came out when I took the ripped nail out of my toe please tell me!