Rework the existing AI.

https://bugzilla.gnome.org/show_bug.cgi?id=708179
Calculate depth a simpler way.

Complicated things are complicated.

https://bugzilla.gnome.org/show_bug.cgi?id=708179