Add snap to grid ability