public void useIt(){
		
		panel.player.equipment.remove(this);
		
		switch(this.itemType){
		case(1):
			if(panel.player.energy <100){
				int diff = (int) (100 - panel.player.energy);
				if(diff > healthPts){
					panel.player.energy += healthPts;
					panel.actionMessages.add(new ActionMessage(panel,"Got " +healthPts+" HP"));
				}else{
					panel.player.energy += diff;
					panel.actionMessages.add(new ActionMessage(panel,"Got " +diff+" HP"));
				}
			}
			
			break;
		case(3):
			if(panel.player.energy <100){
				int diff = (int) (100 - panel.player.energy);
				if(diff > healthPts){
					panel.player.energy += healthPts;
					panel.actionMessages.add(new ActionMessage(panel,"Got " +healthPts+" HP"));
				}else{
					panel.player.energy += diff;
					panel.actionMessages.add(new ActionMessage(panel,"Got " +diff+" HP"));
				}
			}
			break;
		case(4):
			panel.player.cash += money;
			panel.actionMessages.add(new ActionMessage(panel,"Got " +money+"$"));
			break;
		case(5):
			panel.player.cash += money;
			panel.actionMessages.add(new ActionMessage(panel,"Got " +money+"$"));
			break;
		}
	}