Combining sketches

Thank you, groundfungus. I think everything was working, but the computer was just running through the code slowly than I had expected which made the light look like it was not syncing with the button input.