finish a working version of TicTacToe