My take in the Vindinium Artificial Intelligence programming challenge.