Tic-Tac-Toe in python