public void run() 
	{
		long beforeTime, timeDiff, sleep;

		while (true) 
		{
			beforeTime = System.currentTimeMillis();

			Update();

			timeDiff = System.currentTimeMillis() - beforeTime;
			sleep = 200 - timeDiff;

			if (sleep < 0)
				sleep = 1;
			try 
			{
				Thread.sleep(sleep);
			} 
			catch (InterruptedException e) 
			{
				System.out.println("interrupted");
			}
		}
	}