create utility function for acting on player properties, and refactor code for running and step height to make use of this.