Inline the use_next_moving_piece function.