public void setTile(Vector2i coords, Tile tile, Layer Layer) {
			int Tiley = coords.tileY() * (width);
			int Tilex = coords.tileX();
			if((Tiley + Tilex) <= (width * height) && (Tiley + Tilex) >= 0) {
				int ChosenTile = Tiley + Tilex;
				
				int TileID = tile.getTileID();
				if(TileID == VoidTile.getTileID()) TileID = -1;
				Layer.tiles[ChosenTile] = TileID;
				
				if(colltype == CollisionType.ADVANCED_COLLBOX && tile.Collide) {
					int index = indexofLayer(Layer);
					if(index >= 0) {
						collisionLayers.get(index).tiles[ChosenTile] = -2; //change later when collision layers is worked on thoroughly
					} else {
						System.out.println("Returned layer index of " + index +  " during setTile. unable to update collisions correctly.");
					}
				}
			}
	}