I have been having trouble getting buttons to light up an LED for a simon says project for class. To troubleshoot, I have been using the built in example code of buttons here on the arduino website (https://www.arduino.cc/en/Tutorial/Button) to test out the buttons and LEDs. For some reason, I can only get the button on pin 13 to work properly, meaning turning on the LED when the button is being pushed, and turning off when the button is released. When I try any other of the 4 buttons I have wired, the LED I have as the output just stays on regardless of what I do with the button i have set as the input. I have looked over my wiring over and over again and everything looks wired the exact same. I don't know what I am doing wrong anymore. I am very new to arduinos so I apologize if the solution is super simple, but any help would be great. I will attach a picture of my arduino wiring on tinkercad.
Like I said I literally copied and pasted this code for buttons from this website. I have just been switching around the buttonPin and ledPin numbers but it only works properly when buttonPin is set to 13. Any LED works with this button as well. Any other button and an LED just stays on regardless if I press the button or not.
//buttons are set to pins 7,9,11,13
//leds are set to pins 6,8,10,12
const int buttonPin = 13; // only works when buttonPin = 13
const int ledPin = 12;
// variables will change:
int buttonState = 0;
void setup() {
pinMode(ledPin, OUTPUT);
pinMode(buttonPin, INPUT);
}
void loop() {
buttonState = digitalRead(buttonPin);
if (buttonState == HIGH) {
digitalWrite(ledPin, HIGH);
} else {
digitalWrite(ledPin, LOW);
}
}
Thank you for your time.

