public void run(){
		long startTime;
		long elapsedTime;
		long toSleep;
		while (running){
			//System.out.println("Graphics update");
			startTime = System.nanoTime();
			Game.window().repaint();
			elapsedTime = System.nanoTime() - startTime;
			toSleep = 33333333 - (elapsedTime);
			if (toSleep > 0){
				try {
					Thread.sleep(toSleep/1000000, (int)toSleep%1000000);
				} catch (InterruptedException e) {
					e.printStackTrace();
				}
			}
		}
	}