NEED HELP! - Esplora - Im a newbie :)

LOCK PROGRAM ESPLORA

I can’t seem to get multiple pressed button (Switches) to work and increase their scores by one. I’m just trying to get two to work at the same time for now and will increase it to 4 if I can. I’m a complete newbie and barely know nothing, so if you could make your answers a little simpler that would be greatly appreciated. Button 1 counts by 1 as it should, but button 2 doesn’t. I think its something to do with the while loop. This is what I have so far. <3

#include <Esplora.h>

int b1num = 0;
int b2num = 0;
int b3num = 0;
int b4num = 0;
void setup() {
}
void loop() {
  int b1 = Esplora.readButton(SWITCH_DOWN);
  int b2 = Esplora.readButton(SWITCH_LEFT);
  int b3 = Esplora.readButton(SWITCH_UP);
  int b4 = Esplora.readButton(SWITCH_RIGHT);
  
  Esplora.writeRGB(255,0,0);

  if (b1 == LOW)
    {
      Serial.print(b1num++);
      while(Esplora.readButton(b1) == LOW);
    }
  if (b2 == LOW)
    {
      Serial.print(b2num++);
      while(Esplora.readButton(b2) == LOW);
    }
  while (b1num == 6 && b2num == 2) 
        {
          Esplora.writeRGB(0,255,0);
          delay(500);
          Esplora.writeRGB(0,0,0);
          delay(500);
        }
}
      while(Esplora.readButton(b1) == LOW);

Is b1 a switch number or a switch state?