private static void mainloop() {
		String com = consoleIn().toLowerCase();
		
		switch (com) {
			case "create":
				SimMaster.getInstance().create();
				break;
			case "kill":
				SimMaster.getInstance().stop();
				break;
			case "?":
				System.out.println("Possible commands:\n");
				for (String i : Entry.comlist) {
					System.out.println("\t" + i);
				}
				break;
			case "locate":
				SimMaster.getInstance().locate();
				break;
			case "start":
				SimMaster.getInstance().startControl();
				break;
			case "stop":
				SimMaster.getInstance().stopControl();
				break;
			case "exit":
				toExit = true;
				break;
			default:
				System.err.println("Not a command.");
		}
	}