PUZZLE: Create initial snapping code