gui programming with tkinter puter player that moves randomly that would take about lines of code to make an intelligent computer player is not too difficult such computer player should look for two ' or ' in row in order to try to win or blockas well avoid getting put into no-win situation from tkinter import def callback( , )global player if player =' and states[ ][ = and stop_game==falseb[ ][cconfigure(text' 'fg'blue 'bg'white 'states[ ][ ' player ' if player =' and states[ ][ = and stop_game==falseb[ ][cconfigure(text' 'fg'orange 'bg'black 'states[ ][ ' player ' check_for_winner(def check_for_winner()global stop_game for in range( )if states[ ][ ]==states[ ][ ]==states[ ][ ]!= [ ][ configure(bg'grey ' [ ][ configure(bg'grey ' [ ][ configure(bg'grey 'stop_game true for in range( )if states[ ][ ]==states[ ][ ]==states[ ][ ]!= [ ][iconfigure(bg'grey ' [ ][iconfigure(bg'grey ' [ ][iconfigure(bg'grey 'stop_game true if states[ ][ ]==states[ ][ ]==states[ ][ ]!= [ ][ configure(bg'grey ' [ ][ configure(bg'grey ' [ ][ configure(bg'grey 'stop_game true if states[ ][ ]==states[ ][ ]==states[ ][ ]!= [ ][ configure(bg'grey ' [ ][ configure(bg'grey ' [ ][ configure(bg'grey 'stop_game true root tk( [[ , , ][ , , ]