A tic-tac-toe game simulator