private void buildBases() {

		Game game = Game.getInstance();

		for(final Base base: game.getBaseManager().getBases()) {
			base.setBorder(BorderFactory.createLineBorder(Color.black));
			base.setContentAreaFilled(false);
			base.setBounds((int)base.getPosition().x, (int)base.getPosition().y, getTilesSize(), getTilesSize());
			base.setOpaque(true);
			try
			{
				base.setIcon(new ImageIcon(ImageIO.read(new File(Theme.pathImageBase))));
				if(base.hasPlayer()) {
					base.setBackground(base.getPlayer().getColor());
				}
				else {
					base.setBackground(Color.GRAY);
				}
			}
			catch (IOException e1)
			{
				System.err.println("Error ! Loading base image");
			}
			base.addActionListener(new ActionListener() {
				public void actionPerformed(ActionEvent e) {


					// all actions are managed by the base				
					
					try {
						
						base.clicked();
						
					} catch (RealPlayerException e1) {
						System.err.println("Error with RealPlayer : can't manage the click.");
					}

				}
			});

			content.add(base);
		}
		
	}