js run game based on TicTacToe