public void setVariable(String var, Object val){
		for(String p : variableList.keySet())
			if(p.equals(var)){
				String type = variableList.get(p).getClass().getSimpleName();
				if(!var.getClass().getSimpleName().equals(type)){
					try{
						if(type.toLowerCase().equals("float")){
							variableList.put(p, (float) val);
						}
						if(type.toLowerCase().equals("integer")){
							if(val instanceof Float)
								variableList.put(p, (int)((float) val));
							else
								variableList.put(p, (int)val);
						}if(type.toLowerCase().equals("string"))
							variableList.put(p, (String) val);
					} catch (Exception e){e.printStackTrace(); }
				} else 
					variableList.put(p, val);
			}
	}