RubyMotion KenKen solver