A python implementation of tic tac toe