snap to grid and utils.js
Simplified Grid setup and fixed movement cornercases