added Thread to localizer

secondAngle = firstAngle if thread not used. robot latches onto
secondangle immediately after the first angle.