stop cursor if danger position
updates for mask