Lots of AI changes.

Decision now favours available spaces around hits.