Help with 6 button, 6 led code

Hey everyone, so I am trying to program and wire up 6 leds to 6 different button. So if you push button 1, led 1 lights, button 2 lights led 2 and so on. Here is the code that I am using, can anyone see what I am doing wrong? Also, if anyone has a wiring diagram for multiple buttons and leds, that would help immensely.

// constants won't change. They're used here to
// set pin numbers:
const int buttonPin1 = 2; // the number of the pushbutton pin
const int buttonPin2 = 3;
const int buttonPin3 = 4;
const int buttonPin4 = 5;
const int buttonPin5 = 6;
const int buttonPin6 = 7;
const int ledPin1 = 13;
const int ledPin2 = 12;
const int ledPin3 = 11;
const int ledPin4 = 10;
const int ledPin5 = 9;
const int ledPin6 = 8;

// variables will change:
int buttonState = 0; // variable for reading the pushbutton status

void setup() {
// initialize the LED pin as an output:
pinMode(ledPin1, OUTPUT);
// initialize the LED pin as an output:
pinMode(ledPin2, OUTPUT);
pinMode(ledPin3, OUTPUT);
pinMode(ledPin4, OUTPUT);
pinMode(ledPin5, OUTPUT);
pinMode(ledPin6, OUTPUT);
// initialize the pushbutton pin as an input:
pinMode(buttonPin1, INPUT);
// initialize the pushbutton pin as an input:
pinMode(buttonPin2, INPUT);
// initialize the pushbutton pin as an input:
pinMode(buttonPin3, INPUT);
pinMode(buttonPin4, INPUT);
pinMode(buttonPin5, INPUT);
pinMode(buttonPin6, INPUT);
}

void loop(){
// read the state of the pushbutton value:
buttonState = digitalRead(buttonPin1);
// read the state of the pushbutton value:
buttonState = digitalRead(buttonPin2);
buttonState = digitalRead(buttonPin3);
buttonState = digitalRead(buttonPin4);
buttonState = digitalRead(buttonPin5);
buttonState = digitalRead(buttonPin6);

// check if the pushbutton is pressed.
// if it is, the buttonState is HIGH:
if (buttonState == HIGH) {
// turn LED on:
digitalWrite(ledPin1, HIGH);
digitalWrite(ledPin2, HIGH);
digitalWrite(ledPin3, HIGH);
digitalWrite(ledPin4, HIGH);
digitalWrite(ledPin5, HIGH);
digitalWrite(ledPin6, HIGH);
}
else {
// turn LED off:
digitalWrite(ledPin1, LOW);
digitalWrite(ledPin2, LOW);
digitalWrite(ledPin3, LOW);
digitalWrite(ledPin4, LOW);
digitalWrite(ledPin5, LOW);
digitalWrite(ledPin6, LOW);

if (digitalRead(buttonPin1) == HIGH)
digitalWrite(ledPin1, 100);
digitalWrite (ledPin2, 0);
digitalWrite(ledPin3, 0);
digitalWrite(ledPin4, 0);
digitalWrite(ledPin5, 0);
digitalWrite(ledPin6, 0);

if (digitalRead(buttonPin2) == HIGH)
digitalWrite(ledPin1, 0);
digitalWrite(ledPin2, 100);
digitalWrite(ledPin3, 0);
digitalWrite(ledPin4, 0);
digitalWrite(ledPin5, 0);
digitalWrite(ledPin6, 0);

if (digitalRead(buttonPin3) == HIGH)
digitalWrite(ledPin1, 0);
digitalWrite(ledPin2, 0);
digitalWrite(ledPin3, 100);
digitalWrite(ledPin4, 0);
digitalWrite(ledPin5, 0);
digitalWrite(ledPin6, 0);

if (digitalRead(buttonPin4) == HIGH)
digitalWrite(ledPin1, 0);
digitalWrite(ledPin2, 0);
digitalWrite(ledPin3, 0);
digitalWrite(ledPin4, 100);
digitalWrite(ledPin5, 0);
digitalWrite(ledPin6, 0);

if (digitalRead(buttonPin5) == HIGH)
digitalWrite(ledPin1, 0);
digitalWrite(ledPin2, 0);
digitalWrite(ledPin3, 0);
digitalWrite(ledPin4, 0);
digitalWrite(ledPin5, 100);
digitalWrite(ledPin6, 0);

if (digitalRead(buttonPin6) == HIGH)
digitalWrite(ledPin1, 0);
digitalWrite(ledPin2, 0);
digitalWrite(ledPin3, 0);
digitalWrite(ledPin4, 0);
digitalWrite(ledPin5, 0);
digitalWrite(ledPin6, 100);
}
}

You are over thinking your code. It is as simple as using arrays.

USE CODE TAGS, like so. See nice and neat.

byte Buttons[6]= { 2,3,4,5,6,7 }; // at top of code "Global array"
byte LEDs[6]  = {8,9,10,11,12,13}; // at top of code "Global array"

//Inside setup(), this is all you need unless you want to use the serial monitor too
for(byte i = 2; i <= 7; i++)
{
  pinMode(Buttons[ i ], INPUT); // i = 2
  pinMode(LEDs[ i + 6 ], OUTPUT); i  + 6 = 8, and so on to i + 6 = 13.
}

// In the loop(), use another FOR loop to cycle through the arrays to read the buttons and output the corresponding LED.

One more thing, the digital pins, unless they have the ~ next to them, ONLY output a 1 or 0.
If you want to control the brightness of the LED, then you need to use analogWrite and one of pin with the ~ next to it.

there is another thread here in this forum dealing with (only 3) leds and buttons:

http://forum.arduino.cc/index.php?topic=220845.0

maybe you can find some help there? the first question i am thinking about is: have you resistors on your buttons to ground? it is necessary to have a well defined 0/1 switch with your buttons for your if(...HIGH...) switch!

Hazard, Thanks for the reply. Now, once I get the leds to light I need to make it so that I can use the buttons in combination. Example: if I press button 1 and 2 only led 4 will light. any ideas?

digitalWrite(ledPin1, 100);

1 has the same effect as 100.
Any reason for 100?

No reason for the 100, I'm just trying to piece together what I've found online and the button project.

Assign a button a binary value and use the bitWrite function to turn on the led.