tictactoe game in js