Im not at all a genius when it comes to these things but i'm pretty sure M104 is used to retract the head to a safe space before piercing at the next pierce point and normally there should be a G00G40 - G42 code in place after an M104 to cancel out the M103 code for cutting and then having the X...