public DiceRoll rollDice(int diceCount) {
		diceNr = diceCount;
		DiceRoll dr = new DiceRoll(diceCount);
		for (int i = 0; i < diceCount; ++i) {
			diceCheckBoxes[i].setText("" + dr.getDiceValue(i));
		}
		newsField.setText(currentPlayer + " 1 rzut");
		System.out.println("Rolled " + dr);
		mainFrame.repaint();
		synchronized (waitForClick) {
			while (!diceSaved) {
				try {
					waitForClick.wait();
				} catch (InterruptedException e) {
					e.printStackTrace();
				}
			}
			diceSaved = false;
		}
		return dr;
	}