Indented and tried to prevent the bug that preempt can occur before starting wall following (not 100% fix but better)