changed Line::squares[] to vector