public int[][][] getCubes() {
		int[][][] copy = new int[length][width][height - SAFE_HEIGHT];
		for(int x = 0; x < length; x++) {
			for(int y = 0; y < width; y++) {
				for(int z = 0; z < height - SAFE_HEIGHT; z++) {
					copy[x][y][z] = cubes[x][y][z];
				}
			}
		}
		if(fallingPiece != null) {
			for(int i = 0; i < 4; i++) {
				IntPoint p = fallingPiece.getBlocks()[i];
				if(p.getZ() < height - SAFE_HEIGHT) {
					copy[p.getX()][p.getY()][p.getZ()] = fallingPiece
							.getColor();
				}
			}
		}
		return copy;
	}