Additional code minimization.

The A.I. algorithm is rather lengthy written in its procedural form.
I've taken additional steps to reduce the amount of lines the algorithm
is spread over.
Included a note to later enhance the A.I. with Forking.