Added ball-in-box constraint