refactored renderer, it now draws tiles using the same depth-based system as icons