@Override
	public void run() {
      
      try {
		Thread.sleep(waiting);
		
			for(Car car:cars){
				if(!car.finished){
				car.interrupt();
				race.isfinished=false;
				}
		}
	} catch (InterruptedException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	}
	}