Snippet links - https://www.codingthai.com/tic-tac-toe-game-using-javascript/