Artificial Intelligence program, for fun.