outline moving in quadtree and updated gl stuff to take flags into account