Joystick control

Added the code to make the joystick work. Will test this tomorrow