public void drawBuildings(Graphics2D g) {

        BufferedImage bimg;

        ImageObserver io = (img, infoflags, x, y, width, height) -> false;

        Color bborder = new Color(0xFF32F2);

        int offset = 2;
        g.setColor(border);
        g.setBackground(bborder);
        for (Building building : game.player.buildings) {
            drawer.setStyle(mainFont);
            int process;
            try {
                bimg = ImageIO.read(building.getImage());
                g.drawImage(bimg, 2, offset, io);
                g.setColor(border);
                g.drawRect(2, offset, 50, 50);


                g.drawString(building.getName(), 57, offset + 28);
                if (building.isConstructing()) {
                    g.setColor(bborder);
                    process = (int) (50 * building.getProcessStatus());
                    g.fillRect(3, offset + 45, process, 5);
                    drawer.drawString("building ... ", 57, offset + 40, miniFont);
                }

                offset += 53;
            } catch (IOException e) {
                e.printStackTrace();
            }


        }
    }