public static void main(String args[]) {
		try {
		    for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {
		        if ("Nimbus".equals(info.getName())) {
		            UIManager.setLookAndFeel(info.getClassName());
		            break;
		        }
		    }
		} catch (Exception e) {
		    // If Nimbus is not available, you can set the GUI to another look and feel.
		}
		
		
		CritterMain cg = new CritterMain();
		cg.populateGrid(100, Wanderer.class);
		cg.populateGrid(100, FlyTrap.class);
		cg.populateGrid(100, Food.class);
		
		Thread t = new Thread(new Runnable(){

			public void run() {
				while(true)
				{
					System.out.printf("cpu=%.4f\n", (PerformanceMonitor.getInstance().getCpuUsage() * 100.0));
					try {
						Thread.sleep(1000);
					} catch (InterruptedException e) {
						// TODO Auto-generated catch block
						e.printStackTrace();
					}
				}
				
			}},"PerformanceMonitor");
		t.setDaemon(true);
		t.start();

	}