Fix typo
Make AI take randomness into account
Reduce amount of copies
Compile with --opt-level 3 by default