public void setListeners() {
		for(int i = 0; i < shipButtons.size(); i++) {
			JButton jb = shipButtons.get(i);
			
			//	Hide this button if it has been selected by a previous player
//			System.err.println("outside" + disabledButtons.size());
//			for(int j = 0; j < disabledButtons.size(); j++) {
//				if(jb == disabledButtons.get(j)) {
//					jb.setVisible(false);
//					continue;
//				}
//			}
			
			//	Set the same listener to all of them
			jb.addActionListener(new ActionListener() {
				@Override
				public void actionPerformed(ActionEvent ae) {
					JButton butt = (JButton)ae.getSource();
					disabledButtons.add(butt);
//					System.err.println("inside" + disabledButtons.size());
					
					//	Get the ship image on the button
					ImageIcon icon = (ImageIcon)butt.getIcon();
					
					try {
						chosenShip = new ShipPanel(icon);
						
						//	Hide and disable button
						butt.setVisible(false);
						for(ActionListener l : butt.getActionListeners())
							butt.removeActionListener(l);
//						shipPanel.removeAll();
						
						shipSelected = true;
					}
					catch(Exception e) { e.printStackTrace(); }
				}
			});
		}
	}