Tic Tac Toe game code in python