Real contractions vs. pre labor contractions

I'm currently 39+3. I'm having contractions for sure, and they are actually pretty painful, yet they aren't consistent. I've been having these contractions or BH for two whole days now...and they are more frequent and closer at night when I'm laying down. Then this afternoon I had a brownish "bloody show"...what's going on? I'm anxious to know if this is real or not.