public BagType getType() {
        if (this.getClass() == Sandbag.class) return BagType.SANDBAG;
        if (this.getClass() == GravelBag.class) return BagType.GRAVEL_BAG;
        if (this.getClass() == CementBag.class) return BagType.CEMENT_BAG;
        if (this.getClass() == WoodenDivider.class) return BagType.WOODEN_DIVIDER;
        if (this.getClass() == IronDivider.class) return BagType.IRON_DIVIDER;
        if (this.getClass() == ConcreteDivider.class) return BagType.CONCRETE_DIVIDER;

        assert false;
        return null;
    }