i have an outofbound exception index 1, size 1 i cant seem to find the problem here is my code:
public void removeSpellToGraveyard(ArrayList<SpellCard> spells){
for(int c=0; c<5 ; c++ ){
SpellCard r = spells.get(c);
for(int i=0; i<5;i++){
if(spellArea.get(i) == r){
graveyard.add(spellArea.remove(i));
}
}
}
}