added flags and flag checks to controller. fixed temporary BlockFactory.
Created relationship between StageController and Stage