you won and you lost functions