Added function to map joystick movement