Fix maze gen, added debug settings and added better texture management..