If you baby's head is down and legs are up toward rib cage... he/she might be kicking...cuz I am 28 weeks 2 days and sometimes I feel baby purposely wants to kick me and its awful pain....
I guess I didn't realize at 22 weeks he is big enough to be up in my ribs.
I'm about 26 weeks and it happens to me all the time :/ nothing you can do though. Well atleast I haven't found anything that's worked besides lay down and try to relax til the baby moves
Its the position of the baby sometimes you cant do anything but lay down on the side that doesnt hurt