public Integer input(Integer t, Integer j, Integer k) {
        //return Math.sin(j+k+totalTime) > 0 ? 1 : 0;
        //return rnd.nextInt(2);
        if (ExtensionGUI.Input == null)
            return t % 2 > 0 ? rnd.nextInt(2) : Math.sin(j+k+totalTime) > 0 ? 1 : 0;
        else {
            byte[] buffer = ExtensionGUI.Input;
            int l = buffer.length;
            int width = l / xDimension;
            int height = 256 / yDimension;
            int amount = 0;
            for (int i = j * width; i < (j+1)*width; i++) {
                if ((k+1)*height - 128 < buffer[j] && buffer[j] > k*height - 128)
                    amount ++;
            }
            // System.out.println("by x:" + j * width + " " + (j+1)*width + " by y: " + (k+1)*height + " " + k*height + " is " + amount);
            return amount > width / 10 ? 1 : 0;
        }
    }