private void rawroom(Rectangle rec) {
        for (int y = rec.y; y < rec.y + rec.height; y++) {
            for (int x = rec.x; x < rec.x + rec.width; x++) {
                if (data[y][x] == null) {
                    if (y == rec.y || x == rec.x || y == rec.y + rec.height - 1 || x == rec.x + rec.width - 1) {
                        data[y][x] = new Wall(x, y);
                    } else {
                        data[y][x] = new Floor(x, y);
                    }
                }
            }
        }
    }