Wrote ButtonGroup and replaced any multiple uses of buttons with it

ButtonGroup = a group of buttons which can be selected with different
inputs