basic tic tac toe game using JavaScript