Updated smoothing calculations. Fixing bugs in AI search algorithm and
refactoring the parameters away.