Run/Walk patch

Changed some of the internal workings of the Run/Walk functionality.
Tried to fix existing bugs that were present before.