back pain under ribs

Pain under ribs/upper back?
I need to know what this sounds like. I am a smoker and I do have seasonal allergies. I started getting a somewhat sharp pain under my ribs in my back and dull chest pain. The pain in my back gets worse when I breathe very deeply. It started yesterday along w/ abdominal cramping. I have gas and loose stools as well, and the pain is better after passing either- but then it comes back. I walked 3 miles pushing the stroller the other day, so I don’t know if just that position could have pulled chest/back muscles or if there’s something else going on here. Any ideas? Please let me know. Thanks.
Could be galbladder infection or galstones. This sort of pain can radiate from the back around the side under the ribs on you right side “I think it’s the right side”.
Chilis Baby Back Ribs Commercial