Fixed Random AI problem