Snap to grid - fixes #11