@Override
	public void actionPerformed(ActionEvent event)
	{
		JButton source = (JButton) event.getSource();

        if(owner != null && source.equals(buttons[0])) // button object for restart
        {
            owner.restart();
        }
        else if(ownerGame != null && source.equals(buttons[1]))
		{
            ownerGame.switchState(Game.EnumState.TITLE_STATE);
		}
	}