Ruby solution for the classic mars rover problem in Ruby