Start of duel code