Fixed assign-number-in-quadrant so that it can assign numbers in the third quadrant