some refactoring around env
some refactoring around textures
now drawing sides based on a visible face indices list