Update "wolf_goat_and_cabbage.pl"

Added comments to and improved the formatting of
"wolf_goat_and_cabbage.pl".