4WD with XY-joystick and L293D issue

Works for all motors. Connections are good. How do i add all the motors in this coding and how do i add the joystick control?

CONNECTION JOYSTICK
VRY to A0 and VRX to A1 (+5V and GND)