public GamePanel(){
		super();
		
		try{
			handler = new FileHandler("Logging.txt");
		} catch (IOException e){ 
			handler = new ConsoleHandler();
		}
		log.addHandler(handler);
		
		this.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
		this.setTitle("Legue of Numbers");
		

		this.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
		
		/*JDialog dialog = new JDialog();
		dialog.add(new JLabel("You have choosen three values :)"));
		dialog.setSize(200, 200);
		dialog.setVisible(true);*/
		startDialog = new JDialog();
		pStartDialog = new JPanel(new BorderLayout());
		pStartDialog.add(new JLabel("Choose the mathematical operation:"), BorderLayout.NORTH);
		rbPlusMinus = new JRadioButton("+;-");
		rbMultDiv = new JRadioButton("*;/");
		rbPlusMinusMultDiv = new JRadioButton("+;-;*;/");
		rbPlusMinusMultDiv.setSelected(true);
		bgMathematicalOperations = new ButtonGroup();
		bgMathematicalOperations.add(rbPlusMinus);
		bgMathematicalOperations.add(rbMultDiv);
		bgMathematicalOperations.add(rbPlusMinusMultDiv);
		pRadioButtons = new JPanel(new GridLayout(3,1));
		pRadioButtons.add(rbPlusMinus);
		pRadioButtons.add(rbMultDiv);
		pRadioButtons.add(rbPlusMinusMultDiv);
		pStartDialog.add(pRadioButtons, BorderLayout.CENTER);
		bStartDialog = new JButton("Spielen! :)");
		bStartDialog.addActionListener(new ActionListener() {
			
			@Override
			public void actionPerformed(ActionEvent e) {
				System.out.println("Action performed");
				if (rbPlusMinus.isSelected()){
					log.finer("Plus and Minus are allowed.");
					init(Board.PLUSMINUS);
				}
				if (rbMultDiv.isSelected()){
					log.finer("Mult and Div are allowed.");
					init(Board.MULITDIV);
				}
				if (rbPlusMinusMultDiv.isSelected()){
					log.finer("Plus, Minus, Mult and Div are allowed.");
					init(Board.PLUSMINUS);
				}
				if (rbMultDiv.isSelected()){
					init(Board.MULITDIV);
				}
				if (rbPlusMinusMultDiv.isSelected()){
					System.out.println("plusminusMultDiv");
					init(Board.PLUSMINUSMULTDIV);
				}
				startDialog.setTitle("Start Settings");
				startDialog.setVisible(false);
			}
		});
		pStartDialog.add(bStartDialog, BorderLayout.SOUTH);
		startDialog.add(pStartDialog);
		startDialog.setSize(200, 200);
		startDialog.pack();
		startDialog.setVisible(true);
		
	}