Implements joystick to move the red square