the usual tic tac toe game in javascript