draw layers based on wall map; lots of refactoring, as usual..