code: public void spawnThread(DukeController controller, int check_interval) {
      this.controller = controller;
      timer = mgr.schedule(this, 0, check_interval * 1000); // convert to ms
    }
docs: Starts a background thread which calls the controller every
  check_interval milliseconds. Returns immediately, leaving the
  background thread running.