public void paint(Graphics g) {
		g.setColor(Color.WHITE);
		g.fillRect(miniMapOrigX, miniMapOrigY, miniMapWidth, miniMapHeight);
		for(Unit unit : main.getUnits()) {
			g.setColor(Color.RED);
			int xInMinimap = unit.getIntX() * miniMapWidth / main.getMap().getWidth()  + miniMapOrigX;
			int yInMinimap = unit.getIntY() * miniMapHeight / main.getMap().geHeight() + miniMapOrigY;
			g.fillRect(xInMinimap - 1, yInMinimap - 1, 3, 3);
		}
	}