Simple exercise in recreating tic-tac-toe using JS