Updated interrupt code so that X and Y are moving simultaneously.