Refactoring. Two-side gateway construction taken out of tile entity. TODO: rework disposal algorithm