Okay, I have the limit switch working. Now here's another problem having to do with the programming:
I tried this program for the shooting arm, but pressing the corresponding button does nothing. I have tested and confirmed that I AM, in fact, pressing the right button, so I deduced that the problem was in the programming.