Implemented first point snapping