public void passRightMouseClick(float mouseX, float mouseY)
	{	
		ArrayList<GameEntity> s = main.menuSystem.stack;
		if (s.size() > 0)
		{
			//System.out.println(s.size());
			Tile t = main.menuSystem.getMouseHighlighted();
			if (t != null)
			{
				if (main.grid.hasEnemy(s.get(0), t.row, t.col) != null)
				{
					if (!s.get(0).attackWithTheStack(s, t.row, t.col));
						return;
				}
				for (int i = 0; i < s.size(); i++)
					playerAction(s.get(i), false);
				s.clear();
				//timeSelection();
				main.menuSystem.select(null);
			}
		}
		else if (main.menuSystem.getSelected() instanceof GameEntity && !main.menuSystem.menuActivated)
		{
			playerAction((GameEntity)main.menuSystem.getSelected(), true);
		}
		else if (main.menuSystem.getSelected() == null)
		{
			/*TextBox b = main.menuSystem.menus.get(0).findButtonByCommand("markTile");
			if (b.active)
			{
				//b.activate(false);
			}
			else
			{
				b.active = true;
				b.posX = main.mouseX; b.posY = main.mouseY;
				b.origX = main.mouseX; b.origY = main.mouseY;
			}*/
		}
		else
		{
			main.menuSystem.menus.get(0).findButtonByCommand("markTile").active = false;
			main.menuSystem.closeMenus();
		}
	}