public static void saveLevel(Level l, File f) throws IOException{
		if(!f.exists())
			f.createNewFile();
		PrintWriter writer = new PrintWriter(f);
		
		writer.println("#This is a save file for the game 'Suite'. If you want to open this file, i reccommand downloading the game for free at ...");
		writer.println("");
		writer.println("#general:");
		writer.println("levelName: \"" + l.name + "\"");		//handled
		writer.println("levelWidht: " + l.w);					//
		writer.println("levelHeight: " + l.h);					//	
		writer.println("XScroll: " + l.xScroll);				//
		writer.println("YScroll: " + l.yScroll);				//
		//writer.println("Background: " + l.background.);		//?			
		writer.println("");
		writer.println("#positions: ");
		ArrayList<Entity> ents;
		for(int x = 0 ; x < l.w ; x++){
			for(int y = 0 ; y < l.h ; y++){
				ents = new ArrayList<>();
				for(Entity e : l.entities)
					if(e.x == x && e.y == y)
						ents.add(e);
				if(l.getTile(x, y).id != 0 && ents.size() == 0)
					continue;
				String builder = "pos: x:" + x + "y:" + y +  "t:" + l.getTile(x,y).id  + "(" + l.getData(x, y) + ") ";
				for(Entity e : ents)
					builder = builder + "e:" + e.getClass().getName() + "(" + e.toSave() + ")";
				writer.println(builder);
			}
		}
		
		writer.close();
		
		
	}