Implemented win and lose