added the button functionality
Merge pull request #7 from black-perl/working

added the button functionality for storing al the values of the inputs in a 2d array