public void addClickableFunction(final JFrame frame, int xLoc, int yLoc,int width, int height, final String type){
		JLabel label = new JLabel();
		label.setBounds(xLoc, yLoc, width, height);
	
		label.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseClicked(MouseEvent me) {
				
				
			if(type.equalsIgnoreCase("nextDialogEntry")){	
				
				if(getNextDeId() <=getMaxDeSize()-1){
				frame.getContentPane().removeAll();
				JTextArea dialog =  getDialogEntry(frame, getConv(), actors, false);
				frame.add(dialog);
				frame.repaint(); 
				setDialogBackground(frame, backgroundImage);
				}
				else {
					BuildRoom r = new BuildRoom(getRoomId(), frame);
                                        System.out.println("I built room "+getRoomId());
				}
			}
			
			if(type.equalsIgnoreCase("option:1")){
				setNextDeId(getOptionOne());
				frame.getContentPane().removeAll();
				JTextArea dialog =  getDialogEntry(frame, getConv(), actors, false);
				frame.add(dialog);
				frame.repaint(); 
				setDialogBackground(frame, backgroundImage);
			}
			
			if(type.equalsIgnoreCase("option:2")){
				setNextDeId(getOptionTwo());
				frame.getContentPane().removeAll();
				JTextArea dialog =  getDialogEntry(frame, getConv(), actors, false);
				frame.add(dialog);
				frame.repaint(); 
				setDialogBackground(frame, backgroundImage);
			}
			
			if(type.equalsIgnoreCase("option:3")){
				setNextDeId(getOptionThree());
				frame.getContentPane().removeAll();
				JTextArea dialog =  getDialogEntry(frame, getConv(), actors, false);
				frame.add(dialog);
				frame.repaint(); 
				setDialogBackground(frame, backgroundImage);
			}
			
			
			
			
			}});
				
		
		
		frame.add(label);
		
	}