Sudoku puzzle solver in ruby