How to code a 2 Axis System

A motor shield is likely to be a poor choice for controlling stepper motors.

These links may be of interest
Stepper Motor Basics
Simple Stepper Code

...R