public void showTournament()
	{
		amountOfPlayersFrame.dispose();
		for (int i = 0; i < amountOfPlayers; i++)
		{
			buttonArray.add(new JButton("Player"+(i+1)));
			buttonArray.get(i).setName("" + i);
			buttonArray.get(i).addMouseListener(new MouseListener(){
				public void mouseClicked(MouseEvent e) {
					JButton button = (JButton)e.getSource();
					String buttonName = button.getName();
					JFileChooser brainChooser = new JFileChooser("");
					int returnValue = brainChooser.showOpenDialog(null);
					if (returnValue == JFileChooser.APPROVE_OPTION) {
						File selectedFile = brainChooser.getSelectedFile();
						//Add selected file to tournament
						String path = selectedFile.getPath();
						path = path.replace("\\", "/");
						brains.add(path);
						System.out.println(path);
						textFieldArray.get(Integer.parseInt(buttonName)).setText(selectedFile.getName());
			 		}
				}
				public void mouseEntered(MouseEvent e){
				}
				public void mouseExited(MouseEvent e){
				}
				public void mousePressed(MouseEvent e){
				}
				public void mouseReleased(MouseEvent e){
				}
			});
		}

		for (int i = 0; i < amountOfPlayers; i++)
		{
			textFieldArray.add(new JTextField()); 
		}
		tournamentFrame.getContentPane().setLayout(new BorderLayout());
		tournamentPanel.setLayout(new GridLayout(amountOfPlayers, 2));
		for (int i = 0; i < amountOfPlayers; i++)
		{
			tournamentPanel.add(buttonArray.get(i));
			tournamentPanel.add(textFieldArray.get(i));
			textFieldArray.get(i).setEditable(false);
		}
		tournamentFrame.add(tournamentPanel, BorderLayout.CENTER);
		tournamentFrame.add(start, BorderLayout.SOUTH);
		tournamentFrame.setDefaultCloseOperation(EXIT_ON_CLOSE);
		tournamentFrame.pack();
		tournamentFrame.setVisible(true);
	}