private int[] block(Block type) {
        switch (type) {
            case J:
                return new int[]{0, 1, 0, 0, 1, 0, 1, 1, 0};
            case L:
                return new int[]{2, 0, 0, 2, 0, 0, 2, 2, 0};
            case I:
                return new int[]{0, 3, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0};
            case O:
                return new int[]{4, 4, 4, 4};
            case Z:
                return new int[]{0, 5, 0, 5, 5, 0, 5, 0, 0};
            case S:
                return new int[]{6, 0, 0, 6, 6, 0, 0, 6, 0};
            case T:
                return new int[]{0, 7, 0, 7, 7, 7, 0, 0, 0};
        }
        return new int[16];
    }