bug fix for rooms at borders and better "bent" corridors