Objectized button

Made button object, added buttonClick(btitle) function for states.