Tic Tac Toe Game in js