Tic-Tac-Toe game using JavaScript