Created rough outline of updateNav function.
Wrote the correction finding algorithm. Correctness dubious at best.