Algorithm for arms

I successfully turned the arms functions into an algorithm and stored differences between (up, out) in a dictionary.  I actually like the results, check it out.

I still need to do arms forward, but I think this could be a very good DRY solution