A simple implementation of tic-tac-toe in Python