need help with array

You don't need curly brackets after an if or else if, if there's only one line following it.

Not familiar with the button lib you're using, sounds like something even I could write up without a library.