Changed code so joystick can actually initialize