import java.util.*;

public class Layer
{
    public Layer (int layer, int height, int width, boolean debug)
    {
        _cubes = new char[height][width];
        _layer = layer;
        _debug = debug;

        for (int i = 0; i < _cubes.length; i++)
        {
            for (int j = 0; j < _cubes[0].length; j++)
            {
                _cubes[i][j] = CubeId.INACTIVE;
            }
        }
    }

    public final void activate (int y, int x)
    {
        _cubes[y][x] = CubeId.ACTIVE;
    }

    public final void deactivate (int y, int x)
    {
        _cubes[y][x] = CubeId.INACTIVE;
    }

    public final boolean empty ()
    {
        for (int i = 0; i < _cubes.length; i++)
        {
            for (int j = 0; j < _cubes[0].length; j++)
            {
                if (_cubes[i][j] == CubeId.ACTIVE)
                    return false;
            }
        }

        return true;
    }

    public final int getLevel ()
    {
        return _layer;
    }

    @Override
    public String toString ()
    {
        String str = "z="+_layer;
        
        for (int i = 0; i < _cubes.length; i++)
        {
            for (int j = 0; j < _cubes[0].length; j++)
            {
                str += _cubes[i][j];
            }

            str += "\n";
        }

        return str;
    }

    private char[][] _cubes;
    private int _layer;
    private boolean _debug;
}
@@ -1055,24 +1055,29 @@
  %22z=%22+_layer
++%22%5Cn%22
 ;%0A        %0A 

Update Layer.java