Added fitness function. Changed several data structures.