win+lose condition with inventory