@Override
	public void run() {
		long start;
		long calcTime;
		while(true) {
			start = System.currentTimeMillis();
			sc.tick();
			sc.repaint();
			calcTime = System.currentTimeMillis() - start;
			if(TICK_TIME - calcTime > 0) {
				try {
					sleep(TICK_TIME - calcTime);
				}
				catch(InterruptedException ie) {}
			}
		}
	}