public void drawAvailableActions(Graphics2D g) {
        BufferedImage bimg;

        final int offset = 2;
        final int size = 50;
        final int initPosx = 720;

        int posx = 720;
        int posy = 565;
        int i = 0;

        g.setColor(border);

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

        for (Building building : Game.availableBuildings.values()) {
            try {
                bimg = ImageIO.read(building.getImage());
                bimg = convertToGrayScale(bimg);

                g.drawImage(bimg, posx, posy, io);
                g.drawRect(posx - 1, posy - 1, size + 1, size + 1);

            } catch (IOException e) {
                e.printStackTrace();
            }

            i++;
            if (i % 5 == 0) {
                posx = initPosx;
                posy += size + offset * 2;
            } else {
                posx += size + offset * 2;
            }
        }
    }