fixed AI once more. Now it is pretty random