Changing obstacles avoidance fitness function