My attempt at an artificial intelligence