Following a diet that avoids certain things could help treat one particular painful stomach condition