Improved code for playing_sudoku

improved code for playing_sudoku