joystick class added, false detection of joystick crashed the game