Need help with loops and switches

Help with what?

What is it doing that it's not supposed to be doing? What is it supposed to be doing?

How have you wired up your things? What are your things (did you know there's more than one relay out there in the world?) and what's connected to those things?
You probably want to use INPUT_PULLUP if your button is wired to GND as it seems you've suggested it is. How on Earth did you manage to make it such that the Arduino runs through the setup function when you turn it on?