I think you could try connecting as follows:

B2 of A4988 with Spule Y.2, B1 with Spule Y.Mittelkontakt, A1 with Spule X.1, and A2 with Spule X.Mittelkontakt.

Hopefully this will help you run more accurately.