sketch of simple ai using a genetic algorithm (untested)