Started class-based version of the AI.

Also put most_likely_return_position() into its own function.