Solutions to the "Collosal Cue Adventure", in reasonably Haskell and Ruby