AI now takes random moves when possible