private void addBoard(final int x, final int y, final String playOff, final int before, final int after, final boolean vert) {
        String regex = "";
        if (before < 0) {
            regex += "[a-z]*";
        } else if (before > 0) {
            regex += "[a-z]{0," + before + "}";
        }
        regex += playOff;
        if (after < 0) {
            regex += "[a-z]*";
        } else if (after > 0) {
            regex += "[a-z]{0," + after + "}";
        }
        tiles.add(new Regex(new Point(x, y), regex, playOff, vert));
    }