Everytime a box, from the arraylist shapes, reaches a specified position, it has to be removed from the arraylist. But it doesn't seems to work, what's im doing wrong?
if(!box.removing && box.y == MoveY - 50 && MoveX != box.x) {
box.removing = true;
score += 10;
System.out.println(shapes.indexOf(box));
shapes.remove(shapes.indexOf(box));
} else {
// Gravity loop, if not reached the position. This work.
box.update(1);
}