Changed button code to actually use the parent UIElement class.

Changed the button code to work a little better for the game states. The
slider remains the same, but we can make similar changes to it later.
Still working on main menu.