Added snap-to-grid in level editor