Movement script for the player character (Jack)

Works, for the most part. There are issues with animation when moving
from left-right from a walking state.