Slightly modified termination condition for GA