public static void main(String[] args)
	{
		// Create an initial population
		Population myPop = new Population(50, true);

		// Evolve our population until we reach an optimum solution
		int generationCount = 0;
		int times = 0;
		int last = -1;

		while (myPop.getFittest().getFitness() <= FitnessCalc.getMaxFitness())
		{
			if(last == myPop.getFittest().getFitness())
			{
				times++;
			}
			else
			{
				times = 0;
			}
			
			generationCount++;
			System.out.println("Generation: " + generationCount + " Fittest: "+ myPop.getFittest().getFitness());
			last = myPop.getFittest().getFitness();
			myPop = Algorithm.evolvePopulation(myPop);
			
			if(times == 25)
			{
				break;
			}
		}
		
		System.out.println("Solution found!");
		System.out.println("Generation: " + generationCount);
		System.out.println("Genes:");
		System.out.println(myPop.getFittest());

	}