added a few more variables needed for structuring piece place; cleaned up duplicated method;