simple tic-tac-toe in python