improved walking and failsafes

wrote an override function for getPlayerPos() to improve efficiency.
updated my custom SPS setup to conform with SPS.

bug fixes and tweaks