Implemented winner function for challenge 159