1) loop through the array to check if the
source is equal to the button at that index
or
2) buttons have a name property. set it
during the array construction loop as the
index number of the button (will be a
string).
when the button is clicked, you 'get' the name
from the source, parsing 'name' to int for
the index number