private int getBet(BufferedImage image, Bet bet) throws IOException {
        checkComma = false;

        int treeCharX = (isItPot) ? 5 : 4;    // $ xxx
        int fourCharX = (isItPot) ? 12 : 11;  // $ x,xxx

        int[] xList = {bet.getX(), bet.getX() - treeCharX, bet.getX() - fourCharX};

        for (int x : xList) {
            betX = x;
            betValue = getValue(image, bet.getY());
            if (x == (bet.getX() - fourCharX)) {
                checkComma = true;
            }
            if (betValue != null) {
                break;
            }
        }

        if (betValue == null) return 0;

        parseRest(image, bet.getY());

        return Integer.parseInt(betValue);
    }