boat crossing river problem