@Override
	public boolean checkMouseClick(Vector2f v, int button) {
		for (int i = 0; i < bag.size(); i++){
			InventoryBox box = bag.get(i);
			boolean temp = box.checkMouseClick(v, button);
			if (temp && button == 0){
				if (!swapping && box.hasItem()){
					swapping = true;
					swapBox = box;
					return false;
				}
				else if (swapping && !swapBox.equals(bag.get(i))){
					swapping = false;
					swapBox.swapItemWith(box);
					swapBox = null;
					return false;	
				}
			}
			if (temp && button == 1){
				if (box.getItem().hasDropped()){
					box.getItem().setDropped(false);
				}
			}
		}		
		swapping = false;
		swapBox = null;
		return false;
	}