@Override
	public void actionPerformed(ActionEvent ae)
	{
		Random random = new Random();
		String eventName = ae.getActionCommand();
		int face0 = -1;
		int face1 = -1;
		switch (eventName)
		{
			case rollFirst:
				face0 = random.nextInt(6) + 1;
				setDie0(face0);
				break;
			case rollSecond:
				face1 = random.nextInt(6) + 1;
				setDie1(face1);
				break;
			case rollBoth:
				face0 = random.nextInt(6) + 1;
				setDie0(face0);
				face1 = random.nextInt(6) + 1;
				setDie1(face1);
				break;
			default:
				break;
		}
		
		int i = random.nextInt(backgrounds.length - 1);
		Color nextColor = backgrounds[i];
		panel.setBackground(nextColor);
	}