Added joystick update thread but I have to fix some weird error