adding back tic tac toe code

(last commit accidentally reverted the changes)