Dynamics of the Box-Ball System with Random Initial Conditions via Pitman’s Transformation