Code

refactoring the snapping code (laying the groundwork for my next commit which reduces...