Added events for the buttons in the game window
implemented the powerwidget interactions