Clean up updated

This is debatably faster. Try out this comparison of switch vs if-else: http://jsperf.com/switch-if-else/62. < 6 elements or so, if-else appears to be faster. Here, they’re tied for me on chrome, and switch definitely faster on ff.
Optimize fd by removing calls to canMove
Optimize jump by removing unnecessary functino calls