tictactoe basically working in js