@Override
	public void actionPerformed(ActionEvent e) {
		//get the current values of all state variables
		Map<String, Float> values;
		values = m.getPrices();
		
		//get value of btcSlider
		int amt = m.getSlider();
		
		//get bitcoin, $ and current buy price
		float dollars = values.get("dollars");
		float bitcoin = values.get("bitcoin");
		float curAsk = values.get("curAsk");
		
		//check to see if enough $ remains
		if (amt * curAsk <= dollars){
			//subtract the dollars
			dollars -= amt * curAsk;
			//add the bitcoin
			bitcoin += amt;
			//update the model by passing in new values array
			values.put("dollars", dollars);
			values.put("bitcoin", bitcoin);
			m.setVars(values);
			
		}
		else{
			System.out.println("Not enough $!");
		}
	
	}