The code for Tic tac toe in python