Fixed #27 and a related issue with diagonal wall door placement