public void Highlight(int i)
 {
     //add found location to list
     searched.Add(i);
     //colour the bar just searched for
     Output.DrawBar(i, 50);
     //if not stepping, wait
     if (!stepping)
     {
         System.Threading.Thread.Sleep(Output.time);
     }
 }