Added counter for captured objects and function for calling the winningsidefunction with Values