gui programming with tkinter correcting the problems to correct the problem about being able to change cell that already has something in itwe need to have way of knowing which cells have 'swhich have 'sand which are empty one way is to use button method to ask the button what its text is another waywhich we will do here is to create new two-dimensional listwhich we will call statesthat will keep track of things here is the code from tkinter import def callback( , )global player if player =' and states[ ][ = [ ][cconfigure(text' 'states[ ][ ' player ' if player =' and states[ ][ = [ ][cconfigure(text' 'states[ ][ ' player ' root tk(states [[ , , ][ , , ][ , , ] [[ , , ][ , , ][ , , ]for in range( )for in range( ) [ ][jbutton(font='verdana ' )width= bg'yellow 'command lambda = , =jcallback( , ) [ ][jgrid(row icolumn