Cleaned up genetic algorithm.

Still need an independent fitness function.