There is no syntax errors, but it doesn't works after compiling
it shows java.lang.ClassCastException: java.util.ArrayList cannot be cast to Cards
Cards list = new Cards;
for (int i = 0; i <= cards-1; i ++){
this.setLocation(55 + 75*i, 165);
list = (Cards)getOneIntersectingObject(Cards.class);
}

