Added winner function, and corrected printing errors.