DOM/jQuery based tic-tac-toe