Simple Sudoku solver without GUI