Updated Controller Code

Pulled the Xbox polling code into two separate functions. Also added a
flag to the l2/r2 checks to make them "click once" buttons instead of
continuously sending values.