I need help with States and buttons in my code

Ok, I redid a bunch of things based on what I was told by you guys, and this is the result:

#include <Bounce.h>

int ledPins[] = {2,3,4,5,6,7,8,9,10};
int buttonPin = 11;
int buttonPushCounter = 0;
int buttonState = 0;
int lastButtonState = 0;

void setup()
{
for(int i = 0; i < 9; i++){
pinMode(ledPins*, OUTPUT); }*

  • pinMode(buttonPin, INPUT);*
    }

void loop()
{

  • buttonState = digitalRead(buttonPin);*
  • digitalRead(lastButtonState);*
  • if (buttonState == lastButtonState) {*
  • buttonPushCounter++;*
  • }*
  • else {}*
  • if (buttonPushCounter == 1) {*
    //program 2
  • }*
  • else {*
    //program 1
  • }*
    }
    [/quote]
    and it still doe'n't work.
    I honestly don't know how to make all this work as I am noobish at programming.
    And Larry, I thought including the bounce library fixed that?