Sudoku Solver in Ruby using Brute Force method