accepted a stateful approach for registering winner