public ScoreCategory getScoreCategory() {
		synchronized (waitForClick) {
			while (buttonCategoryGroup.getSelection() == null) {
				choosingScoreCategory = true;
				try {
					waitForClick.wait();
				} catch (InterruptedException e) {
					e.printStackTrace();
				}
			}
			diceSaved = false;
		}
		choosingScoreCategory = false;

		String command = buttonCategoryGroup.getSelection().getActionCommand();
		System.out.println("Chose " + command);
		buttonCategoryGroup.getSelection().setEnabled(false);
		buttonCategoryGroup.clearSelection();
		return ScoreCategory.getCategoryMap().get(command);
	}