public void generateFood() {
        Meat buf;
        int xBuf;
        int yBuf;
        boolean right = false;
        while (meats.size() < n) {
            xBuf = ((random.nextInt(500)/10))*10;
            yBuf = ((random.nextInt(500))/10)*10;
            buf = new Meat(xBuf, yBuf);
            right = true;
            for (int i = 0; i < this.world.getWalls().size(); i++) {
            if (buf.getX()  > this.world.getWalls().get(i).getX() + this.world.getWalls().get(i).getWidth() ||
                    buf.getX()  < this.world.getWalls().get(i).getX() ||
                    buf.getY()  < this.world.getWalls().get(i).getY() ||
                    buf.getY()  > this.world.getWalls().get(i).getY() + this.world.getWalls().get(i).getHeight()) {
                
                continue;
                }
            else right = false;
            }
            if (right) 
                meats.add(buf);
        }
    }