def get_best(population):
    """
    Function to get the best chromosome from the population
    @param: population to get the best chromosome from
    @return: best chromosome from population
    """
    best = population.list[0]
    for i in range(1, len(population.list)):
        if population.list[i].fitness < best.fitness:
            best = population.list[i]
    
    return best