For some situations we need to have tiles on a different layers than by default. This e. g. now and then is the case for shadows. If the hero walks over a higher place than the source of a shadow is located, the shadow must not affect the hero.
I guess this one would be very difficult to fix it automatically by the engine. This could be an application for an AI. Only an AI would be capable to do stuff like this automatically.
However, instead of solving it using an AI you could also us give full control of our tiles and their position on the layers by giving us more powerful screenplay.
