public boolean updateBombLayer(int entity_id, Integer depth, Integer damage, Integer  maxCount, Integer curCount){

        if(!nodes.containsKey(entity_id))
            return false;

        if(!nodes.get(entity_id).isBombLayer()) {
            return false;
        }

        BombLayer bombLayer = nodes.get(entity_id).bombLayer;

        System.out.println(bombLayer);
        bombLayer.depth += depth != null ? depth : 0;
        bombLayer.maxCount += maxCount != null ? maxCount : 0;
        bombLayer.curCount += curCount != null ? curCount : 0;
        bombLayer.curCount += maxCount != null ? maxCount : 0;
        bombLayer.damage += damage != null ? damage : 0;
        System.out.println(bombLayer);


        if(bombLayer.curCount > bombLayer.maxCount)
            bombLayer.curCount = bombLayer.maxCount;
        return true;

    }