Added global variable for X coord tracking.

Testing use of the extern keyword for using global variables across
multiple files.