public void changeToPath(int x, int y) {

        if (this.mapGrid[x][y].getType() != Entity.WALL && this.isCellHavePawnOn(x, y) == false && this.mapGrid[x][y].getType() != Entity.POWERUP) {
            putPathIn(x, y);
        }
        
        //Checks to see if a player is in the explosion range
        if (this.mapGrid[x][y].isPawnOn()) {
            int id = this.mapGrid[x][y].getPawn();
            explosionDeaths.add(id);

        }


        //Checks to see if the position blown up is that of the door
        if (x == doorX && y == doorY) {
            //setValueAt(exitIcon, y, x);
            this.isExitHidden = false;
            this.mapGrid[x][y] = new Entity(Entity.EXIT, this.exitIcon);
            setValueAt(this.exitIcon, y, x);
            //this.mapGrid[x][y].getType()
        }

    }