River Crossing Problem in Artificial Intelligence