Usually bloating is a symptom of gas and the pain could simply be related to it. Similar symptoms are present in irritable bowel syndrome which is usually reactive to stress and diet. So see your GP if the pain worsens or the abdomen becomes rigid. A simple antacid may ease the symptoms.