Our intestines have a delicate balance of microbial life that is necessary for proper functioning. Having ulcerative colitis (or other intestinal problems) is not cool but you can sill live a full life if you are careful about what you eat.
There is much research being conducted currently to understand the links between intestinal health and mental functioning. Though it is hard to do in an age of fast food, I recommend listening to your body and treating it with the respect and care that it deserves.