depth test in

depth test works for map and entities
map rendered front to back
entities are not sorted at the moment
shadows are not in and will need some magic rendering to create