sorry two things mis wrote in code are(new values written down for define joystick 2 x and y)
int joyX2 =2; int joyY2 =3;