move Grid class