fn update_boundaries<Z>(world: &mut World, map: &Map) where
    Z: From<u8> + PartialEq + PartialOrd + Copy + 'static,