@Override
	public void run() {

		do{
            field.repaint();
            try {
                Thread.sleep(TimeUnit.SECONDS.toMillis(1/ticks));
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}while(running);

    }