Replace GravityCenter class by DisplayObject