Jumping and Code Tidying

Turns out the reason AddLinearImpulse wasn't working was that we kept
setting the linear velocity and ignoring the y-component.

Also, I consolidated some of the code and added different values for
walking vs running.