Updated dodger with Salok's detector.

Copied the detector from Salok's program and structured the code with two bools and a void for dodging.