what am i doing wrong?

i am creating a program that will light up an LED when button is pushed using the swtichcase statement. here is my code

int LED = 13;
int button = 2;
int bstate = 0;
int swbstate = 0;

void setup() {
  // put your setup code here, to run once:
pinMode(LED, OUTPUT);
pinMode(button, INPUT);
}

void loop() {
  // put your main code here, to run repeatedly:

bstate = digitalRead(button);
delay(100);
  if (bstate == HIGH){
    swbstate = 1;}
    else {
      swbstate = 2;
    }
int B = swbstate;
switch(B){

  case '1':
  digitalWrite(LED, HIGH);
  break;
  case '2':
  digitalWrite(LED, LOW);
  break;
}
  
  
}

whats wrong with my code?

(deleted)

(deleted)

For a button that connects the pin to GND I would use

const byte ledPin = 13;
const byte buttonPin = 2;

void setup() {
  pinMode(ledPin, OUTPUT);
  pinMode(buttonPin, INPUT_PULLUP);
}
void loop() {
  digitalWrite(ledPin, !digitalRead(buttonPin));
}

it worked!! thanks man!! :) much appreciated! :D