private void loadTrees() {
        try {
            String evalString = "(find-all-facts ((?k drzewo)) TRUE)";
            PrimitiveValue pv1 = clipsEnv.getWorldEnv().eval(evalString);

            for (int i = 0; i < pv1.size(); i++) {
                Tree temp = new Tree();
                temp.loadFromClips(pv1.get(i));
                this.trees.add(temp);
                MapFrame mapFrame = this.getFrameById(temp.getMapFrame().getId());
                	
                if (temp.getState().equalsIgnoreCase("sciete")) {
                	this.om.setTileAt(this.om.getBackgroundTileGrid(), mapFrame.getX(), mapFrame.getY(), this.om.tileFromNumber(1379));
                } else if (temp.getState().equalsIgnoreCase("niesciete")) {
                	this.om.setTileAt(this.om.getBackgroundTileGrid(), mapFrame.getX(), mapFrame.getY(), this.om.tileFromNumber(1029));
                }
            }

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