public void actionPerformed(ActionEvent e) {
		if (e.getSource() == spin) {
			if(backList.size()!=0){
				log.info(playerName + " named player has " + arCassa + " money before the roll.");
				log.info("The wheel has been rolled.");
				String Number;
				int Bet;
				int random = randomGenerator();
				writeRolled(random);
				for(ArrayList l : backList){
					Number = (String) l.get(0);
					Bet = (Integer) l.get(1);
					Roulette r = new Roulette(Number, Bet, arCassa, random);
					arCassa=r.newCassaValue();
				}
				RefreshYourMoneyValue(arCassa);
				backList.clear();
				chipFlag = true;
				backBet = 0;
				log.info(playerName + " named player has " + arCassa + " money after the roll.");
				if(arCassa==0){
					log.info(playerName + " named player has run out of money. The game has ended");
					f = new JFrame("Játék vége");
					f.setSize(500,300);
					f.setLocationRelativeTo(null);
					JLabel end = new JLabel("Sajnos elfogyott a pénzed!");
					end.setHorizontalAlignment(SwingConstants.CENTER);
					int endWidth=200;
					int x = (int)((f.getWidth()/2)-endWidth/2);
					end.setBounds(x, 50, endWidth, 20);
					f.add(end);
					
					JLabel end2 = new JLabel("De ne búsúlj bármikor kezdhetsz új játékot :)");
					int endWidth2=325;
					end2.setHorizontalAlignment(SwingConstants.CENTER);
					x = (int)((f.getWidth()/2)-endWidth2/2);
					end2.setBounds(x, 70, endWidth2, 20);
					f.add(end2);
					
					menu = new JButton("Vissza a főmenübe");
					int buttonWidth=175;
					x = (int)((f.getWidth()/2)-buttonWidth/2);
					menu.addActionListener(this);
					menu.setBounds(x,200,buttonWidth,30);
					f.add(menu);
					
					JLabel apcalypse = new JLabel("");
					apcalypse.setBounds(10, 10, 100, 20);
					f.add(apcalypse);
					f.setVisible(true);
				}
			}
		}
		if(e.getSource() == exit ){
			log.info(playerName + " named player finished the game.");
			log.info("MainMenu called by RouletteTable.");
			log.info("RouletteTable closed.");
			xmlmethod();
			remove(this);
			dispose();
			roulette.Application.mainMenu();
		}
		if(e.getSource() == menu){
			log.info("MainMenu called by RouletteTable.");
			log.info("RouletteTable closed.");
			f.dispose();
			dispose();
			roulette.Application.mainMenu();
		}
	}