Indented and tried to prevent the bug that preempt can occur before starting wall following (not 100% fix but better)
Now following the distance we initially have from the wall, should stop excessive turning away in the beginning