public void setBombOff(int x, int y, int range) {

        int i = 0;

        //This is for destroying blocks within the range passed in, starts at 1 since 
        //otherwise first loop will all break the exact same block you start on
        for (i = 1; i < range + 1; i++) {
            try {
                changeToPath(x, y);
            } catch (java.lang.ArrayIndexOutOfBoundsException ex) {
                // there is explosion outside the map because range is outside the border
            }
            try {
                changeToPath(x + i, y);
            } catch (java.lang.ArrayIndexOutOfBoundsException ex) {
                // there is explosion outside the map because range is outside the border
            }

            try {
                changeToPath(x - i, y);
            } catch (java.lang.ArrayIndexOutOfBoundsException ex) {
                // there is explosion outside the map because range is outside the border
            }

            try {
                changeToPath(x, y - i);
            } catch (java.lang.ArrayIndexOutOfBoundsException ex) {
                // there is explosion outside the map because range is outside the border
            }
            try {
                changeToPath(x, y + i);
            } catch (java.lang.ArrayIndexOutOfBoundsException ex) {
                // there is explosion outside the map because range is outside the border
            }
        }


    }