Code not staying in arduino uno HELP

Why don’t you post a picture of the entire thing wired up. Maybe you have connected something wrong

This is not a schematic. It's a spaghetti bowl of parts.