public void run() {
		while (true) {
			if (animationEnabled()) {
				repaint();
			}

			try {
				Thread.sleep(FRAME_DELAY);
			} catch (InterruptedException e) {
				throw new RuntimeException(e);
			}
		}
	}