int pinButton = 5;
int pinButton = 6;
int pinButton = 8;
3 variables with the same name?
Then this
int LED2 = 2;
int LED4 = 4;
int LED7 = 7;
pinMode(LED1, OUTPUT);
pinMode(LED2, OUTPUT);
pinMode(LED3, OUTPUT);
and
int stateButton5;
int stateButton6;
int stateButton8;
stateButton = digitalRead(pinButton5);
stateButton = digitalRead(pinButton6);
stateButton = digitalRead(pinButton8);
and
previous == stateButton5;
previous == stateButton6;
previous == stateButton8;