public void populateMapWidget()
	{
		Random ran = new Random();
		for (int i=0; i<6; ++i) {
			core.Point p = new core.Point(ran.nextInt(getWidth()-6)+3, ran.nextInt(getHeight()));
			MapObject o = ran.nextBoolean() ? MapObject.TREE : MapObject.MOUNTAINS;
			obstacles.add(p);
			mapWidget.objectAt(p.y, p.x).setLayer(2, new gui.WidgetImage(o.file));
		}
		
		
		for (int i=0; i<getHeight(); ++i) {
			for (int j=0; j<getWidth(); ++j) {
				mapWidget.objectAt(i, j).setLayer(0, new gui.WidgetImage(terrain.file, 64));
			}
		}
		GroupOfUnits u;
		for (core.Point pos: p2u.points()) {
			u = p2u.get(pos);
			if (u != null) {
				System.out.println(mapWidget.objectAt(pos.y, pos.x));
				mapWidget.objectAt(pos.y, pos.x).setLayer(3, new gui.WidgetImage(u.type.file));
				mapWidget.objectAt(pos.y, pos.x).setLayer(4, new gui.WidgetLabel(""+u.getNumber(), u.getOwner().getColor()));
			}
				//mapWidget.objectAt(pos.y, pos.x).setToolTip(u.getTooltip());
				//mapWidget.objectAt(pos.y, pos.x).setToolTip(o.getName());
		}
	}