Phase Transitions of Contingent Planning Problem