Deleted unused code and deleted the many joystick calls