public void run() 
	{
	   try 
	   {
	      while (true) 
	      {
	    	  if (threadSuspended) {
                  synchronized (this) {
                      while (threadSuspended) {
                          //System.out.println("run(): waiting");
                          wait();
                      }
                  }
              }
	            main.repaint();
	            main.t.sleep(17);    
	      }
	   }
	   catch (InterruptedException e) { }
	}