Serial Print makes code work. Why?

I tried this but the buttons didn't switch back from green to red when another button was pushed. The touch events were a little erratic making untouched GFX buttons changing when not touched.