You say the code works fine but then you have a problem??? What is the problem? Is the machine alarming out? Is it not making the correct path??
The only thing that I see is remove the G1 that is before the G3 in your N210 line. G1 and G3 are the same G-code group which can not be programmed together. You should also be able to use an R instead of I and J.