Ruby implementation of Ruzzle Solver