public DiceGame loadConfiguration() {
		lock.lock();
		IOHandler ioh = new SwingIOHandler();
		try {
			while (!gameDone) {
				gameDoneC.await();
			}
			if (botOrNot1.isSelected()) {
				gameBuilder.addBot(player1.getText());
			} else {
				gameBuilder.addPlayer(player1.getText(), ioh);
			}

			if (botOrNot2.isSelected()) {
				gameBuilder.addBot(player2.getText());
			} else {
				gameBuilder.addPlayer(player2.getText(), ioh);
			}

		} catch (InterruptedException e) {
			Logger.getLogger(SwingGameConfigurator.class.getName()).log(
					Level.SEVERE, null, e);
		} finally {
			lock.unlock();
		}

		configurationWindow.dispose();
		return gameBuilder.create(ioh);
	}