Convert move_packet and increment_j_blue_estimator to slightly more idiomatic C