My version in ruby of the cross the river puzzle