Adding an on/off button with an existing sketch

read this. its for java, but the principle applies to c as well.

and take a quick look at this: http://arduino.cc/en/Reference/Array