Ruby and JavaScript TDD sudoku solver