Finishing TicTacToe logic