The duel V3

finished debugging code!