working on tic-tac-toe example