Tic tac toe game on HTML5+JavaScript