Tic Tac Toe implementation with vanilla JavaScript