I'm trying to make objects of the same class collide with each other. Unfortunately, they only will collide with the last object created of the class.

Movement Code:


canMove=true;
for(int...