Just use the same program with an X--- Y---- move to each location, why make it complicated for no reason, looks like a crash the way it is programed, a G91 has no place in a program like this, what's the G154 and the P17 for G49 should not be there also
Give me the dimensions, and the tool size, and the spacing and I will do you a quick program