updated collision to arraylist syntax.