Added winbox/losebox and corresponding logic.