public Chunk(int ground) {
        //sets the ground level
        for (int x = 0; x < 30; x++) {
            for (int y = 0; y < 20; y++) {
                if (y < ground) {
                    chunk[x][y] = new Square(Type.DIRT);
                } else {
                    chunk[x][y] = new Square(Type.AIR);
                }
            }
        }
    }