Phase Planning using Monte carlo