moved drawWireframe into the tile loop