@Override
	public void run() 
	{
		while (!end)
		{
			//-------------------------------------------------------
			//						Updates
			//-------------------------------------------------------
			if(!pause) // if not pause update
			{
				updateScreen();
			}
			//-------------------------------------------------------
			//-------------------------------------------------------
			
			repaint(); //Calls the paint method and displays updated data accordingly
			try 
			{
				Thread.sleep(DELAY);
			} 
			catch (InterruptedException e) {}
		}
	}