it came early??

So today I was having a lot of stomach pains and my stomach got bigger all of a sudden and then I stayed in bed holding my stomach for about 3mins then I went to the movies and had me period and when I had it it hurt really bad idk what was happening