adding paths between buildings and giving a preference to them