tic tac toe game code in python