This is just a quick little code task for school, but I've been testing and changing all the possible ways the condition could be and nothing works. The while loop just continues to run past 9 turns, which it shouldn't be doing. It's such a simple while loop yet it doesn't break and it's really confusing me. I'm probably being super dumb but please help.

```
def main():
    turns=0
    while turns<9:
        print("Turns:",turns)
        print_grid()
        p1()
        turns+=1
        print("Turns:",turns)
        print_grid()
        p2()
        turns+=1
    print("done")
main()

```

There are obviously unecessary print statements, they're just the ones I was using to check the turns to make sure I wasnt being stupid. This is the most basic way I can tell it to continue to loop until turns equals 9, which when the code runs, it literally tells me in IDLE - "Turns: 9" which just angers me further. I cant input further than 9 due to the rest of the code not allowing further inputs.