added functionality for user winning