Need guidance on small code

const int buttonPin = 2;
const int buttonPin1 = 7;

int buttonState = 0;
int buttonState1 = 0;

Is that the way you count? If you are going to number one of the variables, number ALL of them. Or use arrays.

Put every { on a new line. Use Tools + Auto Format. You'll see instantly why the LCD doesn't blink all the time. At least I did.