Rewrote next_pos_minus_white() to fix correctness and efficiency