public void mouseClicked(MouseEvent e){
        chosenColumn = e.getX()/100 - 1;
        chosenRow = e.getY()/100 - 1;
        
        //this method connects the UI with the logic
        int size = logic.getGameBoard().length;
		if ((chosenColumn >= 0) && (chosenColumn < size) && (chosenRow >= 0) && (chosenRow < size)) {
			
			//this is the main method that connects the UI with the Logic. 
			logic.insertQueen(chosenColumn, chosenRow);
			repaint();
			
		}
	}