commented duel code