Update ai.py

There's a bug in make_random_move somewhere. It's probably to do with how Python deals with classes; I get an error when I try to pass the board object to this function. I'll fix it unless someone else figures it out.