javascripting tic tac toe