Phase and Phlags

Changed how the flags spawn and stuff, now all acessable though elements
of the FLAGS global table. New global table/class PHASE_MANAGER manages
all of the swapping, etc, of the phases.