Coding Challenge #3 – An AI to solve a maze (ruby only)