Ruby program to solve sudoku puzzles using logic only (no brute force)