perimeter calculation WIP
detach walls
texture coordinates