tile detection - map needs changing to work with tile detection