-1

I'm having trouble implementing this TicTacToe AI that I found here. I'm relatively new to javascript so I'm sure I'm doing something wrong with variable scoping.
choices = {
0:'#ul',
1:'#um',
2:'#ur',
3:'#ml',
4:'#mm',
5:'#mr',
6:'#ll',
7:'#lm',
8:'#lr'
}
function getGrid...