fixed tictactoe js