added max win and max loss length