Debugging shift_right_moving() function