Change entities table reference in function get_buildings_in_tile()