created stacks to check for the pillars and blocks