public void run() {
		MyMouseListener mouseListener = new MyMouseListener(getInstance());
		addMouseListener(mouseListener);
		addMouseMotionListener(mouseListener);
		addMouseWheelListener(mouseListener);
		addKeyListener(new MyKeyListener());
		displayProgress("Loading...", 0);
		startUp();
		try {
			do {
				long start = System.currentTimeMillis();
				if (inputListener != null) {
					//animTick++;
					inputListener.process();
				}
				if (renderer != null) {
					renderer.render();
					//animTick = 0;
				}
				long done = System.currentTimeMillis() - start;
				if(20 - done >= 0) {
				    Thread.sleep(20 - done);
				} else {
					Thread.sleep(0);
				}
			} while(true);
		} catch(Exception e) {
		}
	}