Sharp pains

So I just found out I’m pregnant via home pregnancy test, but I got pregnant while taking the pill so honestly I’m not sure how far along I am. Lately I’ve been getting sharp pains in my lower abdomen when I twist around. Does anyone have any clue what this could be?