Got the joystick code moved to the thread and working