replaced code to extend arm with a function

since the code to raise it worked fine, I just copied the code into the
armControls header function extendArm and replaced it with the function