Cycle between High and LOW signal every milliseconds for 6 seconds

i added this bit of code after the 6s tracking loop, but then nothing happens when i press the start button.

  if (buttonstate == LOW && stepping == false) {
    stepping = true;
  }