Smooth movement, better jumping, and cleaner code