Edge case tile placement solved