Added boolean function keepWalking. No bugs.