rough winner function - not working