added exposedBorders non overlap detection