Did I fry my UNO board or is my programming wrong

Okay, not sure if I broke my board or not. Here is my sketch below, problem is it gets stuck in the while loop, it prints “0” just fine, however it never makes it to write IN2. Basically the serial port never becomes available.

#include <SoftwareSerial.h>
SoftwareSerial MySerial(10,11);
  int A1Pin = 2;
  int A2Pin = 4;
  int B1Pin = 7;
  int B2Pin = 8;
  
void setup() {
  pinMode(A1Pin, OUTPUT);
  pinMode(A2Pin, OUTPUT);
  pinMode(B1Pin, OUTPUT);
  pinMode(B2Pin, OUTPUT);
  
  Serial.begin(9600);
}
  
  
//MySerial.println("Connected");
//MySerial.begin(4800);

void loop(){
  char command[2] = "";
  while(!Serial.available())
  {
     Serial.println("0");
  }
  if(Serial.available() > 0){
    Serial.println("IN2");
    command[2] = Serial.read();
    if (command == "A1")
    {
      
      digitalWrite(A1Pin, HIGH);
      delay(1000);
      digitalWrite(A1Pin, LOW);
    }
    if (command == "A2")
    {
      digitalWrite(A2Pin, HIGH);
      delay(100);
      digitalWrite(A2Pin, LOW);
    }
    if (command == "B1")
    {
      digitalWrite(B1Pin, HIGH);
      delay(100);
      digitalWrite(B1Pin, LOW);
    }
    if (command == "B2")
    {
      digitalWrite(B2Pin, HIGH);
      delay(100);
      digitalWrite(B2Pin, LOW);
    }
  }
}
  char command[2] = "";
...
    command[2] = Serial.read();

That exceeds the bounds of the array, for a start. The array has 2 elements, numbered 0 and 1.

    if (command == "A1")

That isn’t how you compare strings. You need strcmp.

Basically the serial port never becomes available.

Are you sending anything to the serial port?

Basically the serial port never becomes available.

The (hardware) serial port is always available. That is NOT what available() is telling you. You need to read up on what available() is trying to tell you.

I made the changes as noted in the first reply, and then it worked well. I will look into what serial.available means.

Thanks for the help!