added tic tac toe js
updated flipping for safari