My implementation of tic-tac-toe