4xLED & button circuit won't work

I am attempting (I’m very new at this) to code a circuit that contains a red, yellow, green, and blue LED with a switch that when the switch is pressed the first time the red led is on, 2nd time red & yellow, 3rd time red yellow & green, 4th time all LED’s and 5th time all are off, but I keep running into issues that I don’t understand - no error messages come up but it is not working???
I’m using Tinkercad.
Code below & Picture of circuit attached. Thanks!

const int buttonPin = 2; // the number of the button pin
const int red = 10; // the number of the LED pins
const int yellow = 13;
const int green = 12;
const int blue = 11;
int buttonState = 0; // variable for reading the pushbutton status
int counter = 0; //count presses

void setup() {
// initialize the LED pin as an output:
pinMode(red, OUTPUT);
pinMode(yellow, OUTPUT);
pinMode(green, OUTPUT);
pinMode(blue, OUTPUT);
// pushbutton pin as an input:
pinMode(buttonPin, INPUT);
}

void loop() {
if (buttonState == HIGH) {
counter++;
if (counter == 1) {
digitalWrite(red,HIGH);
digitalWrite(yellow,LOW);
digitalWrite(green,LOW);
digitalWrite(blue,LOW);
}
if (counter == 2) {
digitalWrite(red,HIGH);
digitalWrite(yellow,HIGH);
digitalWrite(green,LOW);
digitalWrite(blue,LOW);
}
if (counter == 3) {
digitalWrite(red,HIGH);
digitalWrite(yellow,HIGH);
digitalWrite(green,HIGH);
digitalWrite(blue,LOW);
}
if (counter == 4) {
digitalWrite(red,HIGH);
digitalWrite(yellow,HIGH);
digitalWrite(green,HIGH);
digitalWrite(blue,HIGH);
}
if (counter == 5) {
digitalWrite(red,LOW);
digitalWrite(yellow,LOW);
digitalWrite(green,LOW);
digitalWrite(blue,LOW);
counter = 0;
}}
else {
digitalWrite(red,LOW);
digitalWrite(yellow,LOW);
digitalWrite(green,LOW);
digitalWrite(blue,LOW);
}}

but it is not working???

That is a very poor description of the problem. No lights? They all light? Give us something to go on.

You might want to have a look at the state change detection example. Use the buttonPushCounter and if, else if, else.

You can get rid of the external pullup on the button by setting the button pinMode to INPUT_PULLUP to enable the internal pullup resistor.

Please read the "how to use this forum-please read" stickies to see how to post code (#7). Use auto format (CTRL-T) to indent your code for better readability.

Like this:

const int buttonPin = 2;     // the number of the button pin
const int red =  10;     // the number of the LED pins
const int yellow =  13;
const int green =  12;
const int blue =  11;
int buttonState = 0;  // variable for reading the pushbutton status
int counter = 0; //count presses


void setup()
{
   // initialize the LED pin as an output:
   pinMode(red, OUTPUT);
   pinMode(yellow, OUTPUT);
   pinMode(green, OUTPUT);
   pinMode(blue, OUTPUT);
   // pushbutton pin as an input:
   pinMode(buttonPin, INPUT);
}

void loop()
{
   if (buttonState == HIGH)
   {
      counter++;
      if (counter == 1)
      {
         digitalWrite(red, HIGH);
         digitalWrite(yellow, LOW);
         digitalWrite(green, LOW);
         digitalWrite(blue, LOW);
      }
      if (counter == 2)
      {
         digitalWrite(red, HIGH);
         digitalWrite(yellow, HIGH);
         digitalWrite(green, LOW);
         digitalWrite(blue, LOW);
      }
      if (counter == 3)
      {
         digitalWrite(red, HIGH);
         digitalWrite(yellow, HIGH);
         digitalWrite(green, HIGH);
         digitalWrite(blue, LOW);
      }
      if (counter == 4)
      {
         digitalWrite(red, HIGH);
         digitalWrite(yellow, HIGH);
         digitalWrite(green, HIGH);
         digitalWrite(blue, HIGH);
      }
      if (counter == 5)
      {
         digitalWrite(red, LOW);
         digitalWrite(yellow, LOW);
         digitalWrite(green, LOW);
         digitalWrite(blue, LOW);
         counter = 0;
      }
   }
   else
   {
      digitalWrite(red, LOW);
      digitalWrite(yellow, LOW);
      digitalWrite(green, LOW);
      digitalWrite(blue, LOW);
   }
}
 if (buttonState == HIGH)

The button pin will read LOW when pushed. The way that the code is written the count is continuously counting. And all LEDs appear to be on?

You never read the button pin so nothing you do with the button will have an effect.

At the top of loop() add "buttonState = digitalRead(buttonPin);"

Your counter will count up very fast and soon get beyond 5, for which you have no actions.

You should add state change detection so it only counts once each time you press the button. There is a StateChangeDetection example included in your File->Examples->02.Digital menu.