Tic tac toe in javascript(jQuery)/html5/css3