added logic to prototype winner