Fix playai.py

SOMEHOW I deleted most of it... thank goodness for vim backup files.