Made snapping work

also dashed lines for moving backwards