How to start sketch when button pressed.

This is a photo of how I have everything wired, except the resistor the trigger wire goes to is actually a 5 pin relay, I just couldn't find a phto of that to use.