@Override
	public void mousePressed(MouseEvent me) {
		int x = me.getX();
		int y = me.getY();
		if(mainModel.getState() == State.INVENTORY){
			//if you click off it closes inventory and deletes any item in hand
			if(x > 700 || x < 100 || y > 500 || y < 100){
				if(mainModel.getPlayer().HUD.inMouse != mainModel.getPlayer().HUD.empty){
					mainModel.getPlayer().HUD.inMouse = mainModel.getPlayer().HUD.empty;
				}
				mainModel.getPlayer().HUD.dispInv = false;
				mainModel.setState(State.PLAYING);
			}
		}
	}