Combining sketches

The light seems to be not associated with the button state at all. it flickers on and off, whether the button is pressed or not.