refactored piece placement into location class