Fix typo
Move calculation of building-amount achievements to achievements.js
Fix BCI going crazy during frenzies
Unify comment
Various code tweaks and clean