Python console version of tic-tac-toe