public boolean pickedUp(){
		if (player.getX() == getX() && player.getY() == getY() && !inInventory){
			player.addItemToInventory(this);
			textShown = true;
			player.setTextIsShown(textShown);
			switch (property){
			case "CPU": pickupText = "You picked up the 64-bit " + property + "!";
				break;
			case "HDD": pickupText = "You picked up the 16 TB " + property + "!";
				break;
			case "RAM": pickupText = "You picked up 8 GB of " + property + "!";
				break;
			default: pickupText = "You picked up the " + property + "!";
			}
			inInventory = true;
			return true;
		}
		else if (textShown){
			if (Gdx.input.isKeyPressed(Input.Keys.ENTER)){
				textShown = false;
				player.setTextIsShown(textShown);
			}
			return true;
		}
		else return false;
	}