delete useless code for moving and joystick