Relatively efficient solution to a Japanese variation of the river crossing puzzle