tic tac toe game in javascript