Analog Inputs not working for Arduino Game pad

I am a newbie when it comes to programming and I cannot get the Micro-controller to recognize the analog inputs for a 10 button, 4 axis/button D-PAD controller. All of the other positions 2-13 (except for 8, which stays on and doesn’t turn off) work fine. I don’t mind the position 8 not working if I can get the Analog inputs to works. I don’t care how long the code gets just as long as it work. Can somebody please help me out with what to add/remove to get the Analog buttons to work. I would greatly appreciate it.

Technical Details
RedBear Blend V1 (ATmega32U4, Nordic nRF8001)
Windows 10
Arduino IDE Version 1.8.12

#include "Joystick.h"

Joystick_ Joystick(JOYSTICK_DEFAULT_REPORT_ID,JOYSTICK_TYPE_GAMEPAD,
  11, 0,                  // Button Count, Hat Switch Count
  true, true, false,     // X and Y, but no Z Axis
  false, false, false,   // No Rx, Ry, or Rz
  false, false,          // No rudder or throttle
  false, false, false);  // No accelerator, brake, or steering
  
void setup() {
  // Initialize Button Pins
  pinMode(2, INPUT_PULLUP);
  pinMode(3, INPUT_PULLUP);
  pinMode(4, INPUT_PULLUP);
  pinMode(5, INPUT_PULLUP);
  pinMode(6, INPUT_PULLUP);
  pinMode(7, INPUT_PULLUP);
  pinMode(8, INPUT_PULLUP);
  pinMode(9, INPUT_PULLUP);
  pinMode(10, INPUT_PULLUP);
  pinMode(11, INPUT_PULLUP);
  pinMode(12, INPUT_PULLUP);
  pinMode(13, INPUT_PULLUP);
  pinMode(A0, INPUT);
  pinMode(A1, INPUT);

  
  // Initialize Joystick Library
  Joystick.begin();
  Joystick.setXAxisRange(-1, 1);
  Joystick.setYAxisRange(-1, 1);
}

// Last state of the buttons
int lastButtonState[14] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0};

void loop() {

  // Read pin values
  for (int index = 0; index < 14; index++)
  {
    int currentButtonState = !digitalRead(index + 2);
    if (currentButtonState != lastButtonState[index])
    {
      switch (index) {
        case 0: // UP
          if (currentButtonState == 1) {
            Joystick.setYAxis(-1);
          } else {
            Joystick.setYAxis(0);
          }
          break;
        case 1: // RIGHT
          if (currentButtonState == 1) {
            Joystick.setXAxis(1);
          } else {
            Joystick.setXAxis(0);
          }
          break;
        case 2: // DOWN
          if (currentButtonState == 1) {
            Joystick.setYAxis(1);
          } else {
            Joystick.setYAxis(0);
          }
          break;
        case 3: // LEFT
          if (currentButtonState == 1) {
            Joystick.setXAxis(-1);
          } else {
            Joystick.setXAxis(0);
          }
          
          break;
          case 4: // TRIANGLE
          Joystick.setButton(0, currentButtonState);
          break;
        
          break;
          case 5: // SQUARE
          Joystick.setButton(1, currentButtonState);
          break;

          break;
          case 6: // CROSS
          Joystick.setButton(2, currentButtonState);
          break;

          break;
          case 7: // CIRCLE
          Joystick.setButton(3, currentButtonState);
          break;

          break;
          case 8: // L1
          Joystick.setButton(4, currentButtonState);
          break;

          break;
          case 9: // L2
          Joystick.setButton(5, currentButtonState);
          break;

          break;
          case 10: // R1
          Joystick.setButton(6, currentButtonState);
          break;

          break;
          case 11: // R2
          Joystick.setButton(7, currentButtonState);
          break;
          
          break;
          case 12: // Select
          Joystick.setButton(8, currentButtonState);
          break;
          
          break;
          case 13: // Start
          Joystick.setButton(9, currentButtonState);
          break;

      }
       lastButtonState[index] = currentButtonState;
    }
  }
}

Pin Signal Wiring are as follows:
// Pin 2 = UP
// Pin 3 = RIGHT
// Pin 4 = DOWN
// Pin 5 = LEFT
// Pin 6 = TRIANGLE
// Pin 7 = SQUARE
// Pin 8 = CROSS
// Pin 9 = CIRCLE
// Pin 10 = L1
// Pin 11 = L2
// Pin 12 = R1
// Pin 13 = R2
// Pin A0 = START
// Pin A1 = SELECT
With the connector ground going to micro-controller ground

Why didn't you also configure A0 and A1 as INPUT_PULLUP?

I can switch the analogs to a pull up. Initially I had them as a pull up but then I couldn't get it (analog positions) to work. So I changed them to input because I saw somebody else did that. This was a code that I found and modified it for more buttons. Is there anything else to add or change to get them to work?