a tic tac toe game in javascript