Fixed rest of pattern recognition. Rudimentary fitness function.