added grid snap for terrain movements

Things will now snap into place, so when you move a piece of terrain, it
snaps to the grid.