You have something called pushbutton which setup() says is a Relay button and later in loop() you claim it's on an analog input. Way too confusing for me. Comments should be there for a purpose and it's not just to confuse things.
Welcome to the Forum. Start by reading the stickies at the top of every section which tell you how to post on the forum and what information to provide. This will help others to help you get the answer you need.
In particular make sure that your code is inside code tags. You can edit a post to include them. If the code is too big attach it as a file or create a smaller code that is able to compile and incudes the problem (do not use snippets). It is preferable if you auto format your code before loading it as this will make it easier to read (use CTRL T in the IDE).
Schematics are often useful. You can draw them using a pencil and paper, or use an online tool and then post a picture of it. To post a picture upload it to an image hosting site and then put the link between image tags
Do you have pullup or pulldown resistors on input pins to keep the pins from "floating" and causing false HIGHs or LOWs when the button is not pressed? Best way is like S3 in the diagram, no external resistor needed, logic is reversed though (pin is LOW when button is pressed).