public boolean isCrossroad()
    {
        int walls = 0;
        for (int i = 0; i < exits.length(); i++) {
            walls += Integer.parseInt(exits.substring(i, i + 1));
        }
        return walls < 2;
    }