Tic-tac-toe game using jQuery