Refactor the placement of pieces into the @grid array