arduino is skipping the if statement
In your code this line:

 if ( digitalRead (9 == HIGH)) {


...is likely passing the function "digitalRead()" the value zero as "9 == HIGH" is likely false.

Likely what you want to do is check if the value returned by the function "digitalRead()" is high.  Try:

 if ( digitalRead (9) == HIGH) {


...instead.