wrote 2d grid generator
removed debug from graphics, fixed memory leaks
changed zbuffer rule to least Z wins