Recalculating forward is useless. It is never used and it will be computed again when calling scanDir() again.