Editor: place new tiles on a higher layer if there are entities
Created by: christopho
When you create a new tile, it is placed on its default layer. But when there are entities in higher layers, the user never wants this behavior. A new tile should be placed in the max of its default layer and the highest layer that has an entity at the wanted coordinates.