private static void runText(String args[])
	{
		GameEngine engine = new GameEngine("mosquito.xml");
		// TextInterface ti = new TextInterface();
		// ti.register(engine);
		// ti.playGame(); 
		if(args.length < 7)
		{
			printUsage();
			System.exit(-1);
		}
		Text t = new Text(engine);
		engine.getConfig().setSelectedBoard(new File(args[2]));
		try {
			engine.getConfig().setPlayerClass((Class<Player>) Class.forName(args[3]));
		} catch (ClassNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		engine.getConfig().setNumMosquitos(Integer.valueOf(args[4]));
		engine.getConfig().setNumLights(Integer.valueOf(args[5]));
		if(args[6].equals("long"))
			t.setLongMode(true);
		if(args.length == 8)
			engine.getConfig().setMaxRounds(Integer.valueOf(args[7]));
		t.play();
	}