private String getValue(BufferedImage image, int y) throws IOException {
        if (checkComma) {
            BufferedImage check = image.getSubimage(betX, y,
                    commaWidth, numberHeight);

            check = CheckImage.makeBnW(check);

            if (CheckImage.areEqual(check, comma)) {
                betX = betX + commaWidth;
            }
            checkComma = false;
        }

        BufferedImage numberImage = image.getSubimage(betX, y,
                numberWidth, numberHeight);

        numberImage = CheckImage.makeBnW(numberImage);

        for (String number : numbers.keySet()) {
            if (CheckImage.areEqual(numberImage, numbers.get(number))) {
                betX = betX + numberWidth;
                return number;
            }
        }
        return null;
    }