public World(List<Entity> entities, List<Tile> map, List<PickUpObject> pickUps, Player player){
		this.map = map;
		this.entities = entities;
		this.pickups = pickUps;
		this.player = player;
		everything = new ArrayList<>();
		everything.addAll(map);
		everything.addAll(entities);
		everything.addAll(pickUps);

		for(Tile t : map){
			mapWidth = Math.max(mapWidth, t.getX());
			mapHeight = Math.max(mapHeight, t.getY());
		}
		mapWidth += Constants.TILE_WIDTH;
		mapHeight += Constants.TILE_HEIGHT;
	}