added background tile phase
added detail tile phase
added backround edge cases