small tic tac toe game in js