Using serial-data to define Ax-pin - problem

The analog inputs can also be accessed by their pin numbers. A0 is pin 14, A1 is 15 and so on. So analogWrite(14) is the same as analogWrite(A0). Maybe that will make it easier.