I have made my first game in Python.My program can determine when there is a winner, however I am unsure what to do if the board is full and there is NO winner (a cats game).import cTurtleimport randomimport sysdef DrawTicTacToeBoard(t):    #Vertical Lines of board    t.pensize(3)    t.up()    t.goto(.5,-.5)    t.down()    t.goto(.5,2.5)    t.up()    t.goto(1.5,-.5)    t.down()    t.goto(1.5,2.5)    #Horizontal Lines of board    t.up()    t.goto(-.5,.5)    t.down()    t.goto(2.5,.5)    t.up()    t.goto(-.5,1.5)    t.down()    t.goto(2.5,1.5)def flipPlayer(currentPlayer):    if currentPlayer==0:        currentPlayer=1    else:        currentPlayer=0    return currentPlayerdef drawWhiteBox(t,x,y):    t.up()    t.goto(x-.25,y+.25)    t.down()    t.color(white)    t.begin_fill()    for i in range(4):        t.forward(.8)        t.right(90)    t.end_fill()    t.color(black)def drawMarker(t,currentPlayer,markerList,move,boardLoL):    by=int(move[0:1])    bx=int(move[2:])    y=by+(.22)    x=bx-(.15)    drawWhiteBox(t,x,y)    t.up()    t.goto(x,y)    boardLoL[by][bx]=markerList[currentPlayer]    t.write(markerList[currentPlayer],move=False,align=left,font=(Arial,48,normal))def getValidMove(validMoveList,markerList,currentPlayer,boardLoL):    move =     while move not in validMoveList:        move = input(Enter location to place your marker  + markerList[currentPlayer] + , or EXIT to end game => )        if move==EXIT:            sys.exit()        if move in validMoveList:            by=int(move[0])            bx=int(move[2:])            if boardLoL[by][bx]==:                return move            else:                print(Location already occupied)                move=def gameWon(b):    for row in range(3):        if b[row][0]==b[row][1] and b[row][1]==b[row][2] and b[row][0]!=:            print(Way to go,b[row][0])            return b[row][0]    for column in range(3):        if b[0][column]==b[1][column] and b[1][column]==b[2][column] and b[0][column]!=:            print(Way to go,b[column][0])            return b[0][column]    for diag in range(2):        if b[0][0]==b[1][1] and b[1][1]==b[2][2] and b[0][0]!=:            print(Way to go,b[0][0])            return b[0][0]        if b[2][0]==b[1][1] and b[1][1]==b[0][2] and b[2][0]!=:            print(Way to go,b[2][0])            return[2][0]    return def boardIsFull(boardLoL):    return Falsedef main():    boardLoL=[[,,],[,,],[,,]]    markerList=[O,X]    validMoveList=[0,0,0,1,0,2,1,0,1,1,1,2,2,0,2,1,2,2]    joe=cTurtle.Turtle()    joe.setWorldCoordinates(-2,3,4,-1)    joe.ht()    currentPlayer=random.randint(0,1)    DrawTicTacToeBoard(joe)    move =     while boardIsFull(boardLoL)==False and gameWon(boardLoL)== and move !=EXIT:        move = getValidMove(validMoveList,markerList,currentPlayer,boardLoL)        drawMarker(joe,currentPlayer,markerList,move,boardLoL)        currentPlayer=flipPlayer(currentPlayer)    gameWon(boardLoL)    boardIsFull(boardLoL)main()
Tic Tac Toe Cats Game/End Game
python;game;tic tac toe;turtle graphics