HTML5 Tic-Tac-Toe game