TicTacToe game in python