Using AI for solving sudoku problem