Snapping
Need to add snap to frame algorithm