Tic Tac Toe Problem In Python