Fixed a bug with border generation and tower building