A horrible attempt at implementing a genetic algorithm, with many many hacks.