added joystickcontrolls and detection for players