Help with error message "serial was not declared in this scope"

Easy one this:-

  Serial.begin(9600);
  Serial.println("FSM tester");

yet later it's

      //    serial.print("state 1");

Like a lot of cases in programming case matters.