restructuring referee, magic carpet, and flower to fall under sprite superclass