the problem i\'m trying to solve is one of the river crossing puzzles. here\'s my code, before i explain what i\'ve done and what my problem is. this is only a part of my co