Arduino UNO R3 HELP- Project 8 -- BASIC CODE

None of my lights are turning on. This is suppose to turn on a led every 1 second until it reaches led number 6. Then the tilt sensor is suppose to reset the clock and the program will run again. I have no idea what to fix. Ive looked at my breadboard and everything seems to be in the right place so it has to be the code. Additionally I’ve tried it in tinkercad with no luck. no lights are turning on it doesn’t even seem like the program is running! please help me.

//Carter Benz
//Arduino-Project 8

const int switchPin = 8;

unsigned long previousTime = 0;
int switchState = 0;
int prevSwitchState = 0;
int led = 2;

long interval = 1000;

void setup() {

for (int x = 2; x < 8; x++)
{
pinMode(switchPin, INPUT);
}
}

void loop() {

unsigned long currentTime = millis();

if (currentTime - previousTime > interval)
{
previousTime = currentTime;

digitalWrite(led, HIGH);

led++;

if (led == 7)
{
  
  }
}

switchState = digitalRead(switchPin);

if (switchState != prevSwitchState)
{
  for (int x = 2; x < 8; x++)
    {
      digitalWrite(x, LOW);
      }

  led = 2;

  previousTime = currentTime;

  
  }

  prevSwitchState = switchState;

}