Both steppers moving same direction when commands given

I’ve personally checked the wiring several times once the problem occurred I’ve also replaced step driver a498...happened. Do you think it myt be due to CNC shield issue ? Or Arduino ? Please help