Bug with ArrayList

i add the points generated in the class a in the void setup.
k is used to iterate and stop momPos array