Rename 'allPieces' to 'allSquares' for clarity.