solution of river crossing game