Added Snapping changes, still not able to run with the changes in PrimitiveManager.js