@Override
			public void mouseReleased(MouseEvent mouse) 
			{
				EmpireDrawer.setShoudDrawRectangle(false);
				
				b.setPosition(mouse.getX(), mouse.getY());
				
				int aX = MyMouseListener.a.getXPosition(), bX = MyMouseListener.b.getXPosition(), aY = MyMouseListener.a.getYPosition(), bY = MyMouseListener.b.getYPosition();
				
				if(aX > bX)
				{
					int h = aX;
					aX = bX;
					bX = h;
				}
				
				if(aY > bY)
				{
					int h = aY;
					aY = bY;
					bY = h;
				}
				
				
				
				for(Settlement s : Empire.getInstance().SETTLEMENTS.values())
				{
					s.setSelected(false);
				}
				
				
				boolean isRomanLegionSelected  =false, isMerchantSelected=false;
				
				ArrayList<Creature> selectedList = new ArrayList<>();
				
				//synchronized(creaturesListGuard)
				{
					for(Creature c : Empire.getInstance().CREATURES)
					{
						c.setSelected(false);
						
						if(c.getXPosition() >= aX && c.getXPosition() <= bX && c.getYPosition() >= aY && c.getYPosition() <= bY)
						{
							if(c.getClass() == BarbarianHorde.class)
							{
								
							}
							else
							{
								c.setSelected(true);
								selectedList.add(c);
								
								if(c.getClass() == Merchant.class)
								{
									isMerchantSelected = true;
								}
								else if (c.getClass() == RomanLegion.class)
								{
									isRomanLegionSelected = true;
								}
							}
						}
					}
				}
				
				
				sideMenu.remove(properties);
				sideMenu.revalidate();
				if(isMerchantSelected && isRomanLegionSelected)
				{
					properties = EmpireDrawer.getInstance().new UnitActionWindow(selectedList);
				}
				else if(isMerchantSelected)
				{
					properties = EmpireDrawer.getInstance().new MerchantActionWindow(selectedList);
				}
				else if(isRomanLegionSelected)
				{
					properties = EmpireDrawer.getInstance().new RomanLegionActionWindow(selectedList);
				}
				sideMenu.add(properties);
				sideMenu.revalidate();
				empireFrame.repaint();
				
				//synchronized(creaturesListGuard)
				{
					for(Creature c : Empire.getInstance().CREATURES)
					{
						if(c.getXPosition() >= aX && c.getXPosition() <= bX && c.getYPosition() >= aY && c.getYPosition() <= bY)
						{
							if(c.getClass() == BarbarianHorde.class)
							{
								
							}
							else
							{
								c.speak();
							}
							return;
						}
					}
				}
				
				
				sideMenu.remove(properties);
				sideMenu.revalidate();
				properties = EmpireDrawer.getInstance().new ActionWindow();
				sideMenu.add(properties);
				sideMenu.revalidate();
				empireFrame.repaint();
			}