public void run() 
	{
		screen = createVolatileImage(size.width, size.height);
		try
		{
			while(isRunning)
			{
				try
				{
					tick();
					render();

					Thread.sleep(5);

				}
				catch(Exception e) {}
			}
		}
		catch(Exception e) {e.printStackTrace();}
	}