public void update() {

		float newX = x + moveAmountX;
		float newY = y + moveAmountY;
		
		moveAmountX = 0;
		moveAmountY = 0;
		
		ArrayList<GameObject> objects = Game.rectangleCollide(newX, newY, newX + SIZE, newY + SIZE);
		ArrayList<GameObject> items = new ArrayList<GameObject>();
		
		boolean move = true;
		
		for(GameObject go : objects) {
			if(go.getType() == ITEM_ID)
				items.add(go);
			if(go.getSolid())
				move = false;
		}
			
		if(!move)
			return;
		
		x = newX;
		y = newY;
		
		for(GameObject go : items) {
			
			System.out.println("You just picked up "+((Item)go).getName()+"!");
			go.remove();
			addItem((Item)go);
		}
				
	}