Update TicTacToe.py

fixed check