A dynamic game of Tic Tac Toe using Javascript