Trying to use two joysticks

#include <AFMotor.h>
#include <XBOXRECV.h>
#include <Servo.h> 
USB Usb;
XBOXRECV Xbox(&Usb);
AF_DCMotor motor(1, MOTOR12_64KHZ); // create motor #2, 64KHz pwm
Servo myservo; 
int pos = 0;


void setup() {
  Serial.begin(115200);
  if (Usb.Init() == -1) {
    Serial.print(F("\r\nOSC did not start"));
    while(1); //halt
  }
  Serial.print(F("\r\nXbox Wireless Receiver Library Started"));
  myservo.attach(9);
   
}
void loop() {
  Usb.Task();
  if(Xbox.XboxReceiverConnected) {
    for(uint8_t i=0;i<4;i++) {
      if(Xbox.Xbox360Connected[i]) {
        if(Xbox.getButtonPress(i,L2) || Xbox.getButtonPress(i,R2)) {
          Serial.print("L2: ");
          Serial.print(Xbox.getButtonPress(i,L2));
          Serial.print("\tR2: ");
          Serial.println(Xbox.getButtonPress(i,R2));
          Xbox.setRumbleOn(i,Xbox.getButtonPress(i,L2),Xbox.getButtonPress(i,R2));
        }
        if(Xbox.getAnalogHat(i,LeftHatX) > 7500 || Xbox.getAnalogHat(i,LeftHatX) < -7500 || Xbox.getAnalogHat(i,LeftHatY) > 7500 || Xbox.getAnalogHat(i,LeftHatY) < -7500 || Xbox.getAnalogHat(i,RightHatX) > 7500 || Xbox.getAnalogHat(i,RightHatX) < -7500 || Xbox.getAnalogHat(i,RightHatY) > 7500 || Xbox.getAnalogHat(i,RightHatY) < -7500 || Xbox.getAnalogHat(i,LeftHatY) < 7500 || Xbox.getAnalogHat(i,LeftHatY) > -7500 || Xbox.getAnalogHat(i,RightHatY) < 7500 || Xbox.getAnalogHat(i,RightHatY) > -7500) {
          if(Xbox.getAnalogHat(i,LeftHatX) > 7500 || Xbox.getAnalogHat(i,LeftHatX) < -7500) {
            Serial.print(F("LeftHatX: ")); 
            Serial.print(Xbox.getAnalogHat(i,LeftHatX));
            Serial.print("\t");
          } 
          if(Xbox.getAnalogHat(i,LeftHatY) > 7500) {
            Serial.print(F("LeftHatY: ")); 
            Serial.print(Xbox.getAnalogHat(i,LeftHatY));
            motor.setSpeed(25);     // set the speed to 200/255
            motor.run(FORWARD);      // turn it on going forward
            
            Serial.print("\t");
          } 
          else
          if(Xbox.getAnalogHat(i,LeftHatY) < 7500 && Xbox.getAnalogHat(i,LeftHatY) > -7500) {
            Serial.print(F("LeftHatY: ")); 
            Serial.print(Xbox.getAnalogHat(i,LeftHatY));
            motor.setSpeed(0);     // set the speed to 200/255
            motor.run(RELEASE);      // stops motor
            
            Serial.print("\t");
          }
         if(Xbox.getAnalogHat(i,LeftHatY) < -7500) {
            Serial.print(F("LeftHatY: ")); 
            Serial.print(Xbox.getAnalogHat(i,LeftHatY));
            motor.setSpeed(250);     // set the speed to 200/255
            motor.run(BACKWARD);      // turn it on going forward
            
            Serial.print("\t");
          } 
          else
          if(Xbox.getAnalogHat(i,LeftHatY) < 7500 && Xbox.getAnalogHat(i,LeftHatY) > -7500) {
            Serial.print(F("LeftHatY: ")); 
            Serial.print(Xbox.getAnalogHat(i,LeftHatY));
            motor.setSpeed(0);     // set the speed to 200/255
            motor.run(RELEASE);      // stops motor
            
            Serial.print("\t");
          }
         if(Xbox.getAnalogHat(i,RightHatY) > 10000) {
            Serial.print(F("RightHatY: ")); 
            Serial.print(Xbox.getAnalogHat(i,RightHatY));
            Serial.print("\t");      
            myservo.write(-180);
          }
          else
          if(Xbox.getAnalogHat(i,RightHatY) < 10000 && Xbox.getAnalogHat(i,RightHatY) > -10000) {
            Serial.print(F("RightHatY: ")); 
            Serial.print(Xbox.getAnalogHat(i,RightHatY));
            myservo.write(90);
            
            Serial.print("\t");
          }

          if(Xbox.getAnalogHat(i,RightHatY) < -10000) {
            Serial.print(F("RightHatY: ")); 
            Serial.print(Xbox.getAnalogHat(i,RightHatY));
            myservo.write(0);
          }
          else
          if(Xbox.getAnalogHat(i,RightHatY) < 10000 && Xbox.getAnalogHat(i,RightHatY) > -10000) {
            Serial.print(F("RightHatY: ")); 
            Serial.print(Xbox.getAnalogHat(i,RightHatY));
            myservo.write(90);
            
            Serial.print("\t");
          }
          Serial.println();
        }
      }

        
    }
  } 
  delay(1);
}

Trying to get the motor to run on one joystick and the continuous rotation servo to run off the other joystick.

Presumably it isn't working - can you explain what you expect to happen and what is actually happening with that code?