added class to pre-sort the tiles (for depth rendering) before adding
them to the engine , some minor code tweaks