fix entry logic for palace tile placement