@Override
	public void run() 
	{
		threadRun = true;
		Simulator simulator = Main.getSimulator();
		
		while(threadRun && numSteps > 0 && simulator.getSimulatorView().isViable(simulator.getField()))
		{
			Main.getSimulator().simulateOneStep();
			numSteps--;
			while(infinite && numSteps == 0)
			{
				numSteps++;
			}
			
			try {
				Thread.sleep(0);
			} 
			catch (Exception e) 
			{
            	System.out.println("InterruptedException");
			}
		}
		threadRun = false;
	}