populates allSquares array