problem code for hold buttons

What do you have connected to pins 7, 8, and 9? Switches, presumably. But, how are they wired?

Using the internal pullup resistors is easier than using external resistors. Simply connect one leg of the switch to ground and the other leg to a pin, and enable the pullup, using INPUT_PULLUP as the pinMode (1.0+) or adding digitalWrite(pinNumber, HIGH); after the pinMode(pinNumber, INPUT); statement.

Then, HIGH is not pressed and LOW is pressed.