Added snap to grid and sprite movement