Added ball detection. We know when the ball is inside boxA, B, or neither. Switching balls now only switches between balls in boxA