Declaring analog pins as digital and setting up with a loop

Does not matter if you use the Ax or numberic designation for the analog pin, the Ax name is just a define for the number.

How much memory (ram) are you using? Since you are using "new" that memory will not be shown in the total from the compiler.